[glib/mcatanzaro/client-connection-validation-flags] Improve documentation of client connection validation flags



commit 407b86afb8dec5020a75995ead6fcdec8b9fee16
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue May 5 13:58:07 2020 -0500

    Improve documentation of client connection validation flags
    
    Validation fails if ANY of the flags are set. Not if they're ALL set.
    This is obvious and no programmer would be confused, but let's fix it
    anyway.

 gio/gdtlsclientconnection.c | 2 +-
 gio/gtlsclientconnection.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdtlsclientconnection.c b/gio/gdtlsclientconnection.c
index 1ce97d362..bdbf890fe 100644
--- a/gio/gdtlsclientconnection.c
+++ b/gio/gdtlsclientconnection.c
@@ -59,7 +59,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface)
    * GDtlsClientConnection:validation-flags:
    *
    * What steps to perform when validating a certificate received from
-   * a server. Server certificates that fail to validate in all of the
+   * a server. Server certificates that fail to validate in any of the
    * ways indicated here will be rejected unless the application
    * overrides the default via #GDtlsConnection::accept-certificate.
    *
diff --git a/gio/gtlsclientconnection.c b/gio/gtlsclientconnection.c
index d41d0c2eb..f2a61c425 100644
--- a/gio/gtlsclientconnection.c
+++ b/gio/gtlsclientconnection.c
@@ -55,7 +55,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface)
    * GTlsClientConnection:validation-flags:
    *
    * What steps to perform when validating a certificate received from
-   * a server. Server certificates that fail to validate in all of the
+   * a server. Server certificates that fail to validate in any of the
    * ways indicated here will be rejected unless the application
    * overrides the default via #GTlsConnection::accept-certificate.
    *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]