[glib-networking/wip/openssl: 38/41] Always return 1 on the verify callback



commit 22ab1ed42eb11478dfda8b14939ac232188d7516
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Nov 10 12:29:00 2015 +0100

    Always return 1 on the verify callback

 tls/openssl/gtlsserverconnection-openssl.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/tls/openssl/gtlsserverconnection-openssl.c b/tls/openssl/gtlsserverconnection-openssl.c
index 68be73a..2490263 100644
--- a/tls/openssl/gtlsserverconnection-openssl.c
+++ b/tls/openssl/gtlsserverconnection-openssl.c
@@ -122,16 +122,7 @@ static int
 verify_callback (int             preverify_ok,
                  X509_STORE_CTX *ctx)
 {
-  int err;
-
-  err = X509_STORE_CTX_get_error (ctx);
-
-  if (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY ||
-      err == X509_V_ERR_CERT_UNTRUSTED ||
-      err == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE)
-    return 1;
-
-  return preverify_ok;
+  return 1;
 }
 
 static GTlsConnectionBaseStatus


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