Blob Blame Raw
From: Razvan Crainea <razvan@opensips.org>
Date: Wed, 30 Nov 2016 20:44:46 +0200
Subject: [PATCH] identity: complete port to openssl 1.1.0

Reported by Petr Pisar in issue #996

diff --git a/modules/identity/identity.c b/modules/identity/identity.c
index 1d54b6d..9024e61 100644
--- a/modules/identity/identity.c
+++ b/modules/identity/identity.c
@@ -1734,8 +1734,9 @@ static int verify_callback(int ok, X509_STORE_CTX * stor)
 {
 	if (!ok)
 	{
+		int err = X509_STORE_CTX_get_error(stor);
 		LM_INFO("certificate validation failed: %s\n",
-			X509_verify_cert_error_string(stor->error));
+			X509_verify_cert_error_string(err));
 	}
 
 	return ok;