[glib-networking/wip/openssl] Always return 1 on the verify callback
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl] Always return 1 on the verify callback
- Date: Tue, 10 Nov 2015 11:30:13 +0000 (UTC)
commit 0e5146b0ec9b1dc326a59e18728596c0cf3996e0
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]