archrelease: copy trunk to community-any
[ArchLinux/community.git] / dillo / repos / community-x86_64 / openssl.patch
blobfb61fbb91610fecea8f3fdfd5033aada7f3c75bd
1 Description: Fix OpenSSL 1.1 detection and access to now opaque structures.
2 Bug-Debian: https://bugs.debian.org/845035
3 Author: Axel Beckert <abe@debian.org>
4 Forwarded: http://lists.dillo.org/pipermail/dillo-dev/2017-September/011076.html
6 --- a/configure.ac
7 +++ b/configure.ac
8 @@ -286,7 +286,7 @@
10 if test "x$ssl_ok" = "xyes"; then
11 old_libs="$LIBS"
12 - AC_CHECK_LIB(ssl, SSL_library_init, ssl_ok=yes, ssl_ok=no, -lcrypto)
13 + AC_CHECK_LIB(ssl, SSL_new, ssl_ok=yes, ssl_ok=no, -lcrypto)
14 LIBS="$old_libs"
17 --- a/dpi/https.c
18 +++ b/dpi/https.c
19 @@ -476,7 +476,7 @@
20 case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
21 /*Either self signed and untrusted*/
22 /*Extract CN from certificate name information*/
23 - if ((cn = strstr(remote_cert->name, "/CN=")) == NULL) {
24 + if ((cn = strstr(X509_get_subject_name((X509 *) remote_cert), "/CN=")) == NULL) {
25 strcpy(buf, "(no CN given)");
26 } else {
27 char *cn_end;