summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-10-23 03:26:43 -0400
committerPatrick Griffis <tingping@tingping.se>2016-10-23 03:34:15 -0400
commita0e80ebda2bc9270beb4818a2438d7555593b6fd (patch)
treee77259e3e7b3175f88d7fd1ac6c3fcc9819c49be /src/common
parent1186236ac11d959bd7b2af5c53db065f3aa3da13 (diff)
Final fixup of OpenSSL 1.1.0 changes
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c
index ad83d070..cb58ce25 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -176,7 +176,11 @@ _SSL_get_cert_info (struct cert_info *cert_info, SSL * ssl)
 		return 1;
 
 	alg = OBJ_obj2nid (algor->algorithm);
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
 	sign_alg = OBJ_obj2nid (peer_cert->sig_alg->algorithm);
+#else
+	sign_alg = X509_get_signature_nid (peer_cert);
+#endif
 	ASN1_TIME_snprintf (notBefore, sizeof (notBefore),
 							  X509_get_notBefore (peer_cert));
 	ASN1_TIME_snprintf (notAfter, sizeof (notAfter),