View | Details | Raw Unified | Return to bug 215363
Collapse All | Expand All

(-)files/patch-ssl.c (+20 lines)
Line 0 Link Here
1
--- src/common/ssl.c	2016-12-16 18:04:45 UTC
2
+++ src/common/ssl.c
3
@@ -176,7 +176,7 @@ _SSL_get_cert_info (struct cert_info *ce
4
 		return 1;
5
 
6
 	alg = OBJ_obj2nid (algor->algorithm);
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if LIBRESSL_VERSION_NUMBER || OPENSSL_VERSION_NUMBER < 0x10100000L
9
 	sign_alg = OBJ_obj2nid (peer_cert->sig_alg->algorithm);
10
 #else
11
 	sign_alg = X509_get_signature_nid (peer_cert);
12
@@ -306,7 +306,7 @@ _SSL_socket (SSL_CTX *ctx, int sd)
13
 
14
 	SSL_set_fd (ssl, sd);
15
 
16
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
17
+#if LIBRESSL_VERSION_NUMBER || OPENSSL_VERSION_NUMBER < 0x10100000L
18
 	method = ctx->method;
19
 #else
20
 	method = SSL_CTX_get_ssl_method (ctx);

Return to bug 215363