From: Henrik Nordstrom Date: Sun, 28 Feb 2010 19:49:30 +0000 (+0100) Subject: Author: Adam Ciarcinski X-Git-Tag: SQUID_3_1_0_18~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e6f5e7d6e19d6e27bc6d916edf6b7fe07758761;p=thirdparty%2Fsquid.git Author: Adam Ciarcinski Bug 2866: Support OpenSSL 1.0 Port of patches provided by Adam Ciarcinski to fix build issues with recent versions of OpenSSL in Apache on NetBSD. --- diff --git a/src/ssl_support.cc b/src/ssl_support.cc index d7300683bf..ff1ed1158d 100644 --- a/src/ssl_support.cc +++ b/src/ssl_support.cc @@ -159,7 +159,7 @@ ssl_verify_cb(int ok, X509_STORE_CTX * ctx) char cn[1024]; STACK_OF(GENERAL_NAME) * altnames; - altnames = (STACK*)X509_get_ext_d2i(peer_cert, NID_subject_alt_name, NULL, NULL); + altnames = (STACK_OF(GENERAL_NAME)*)X509_get_ext_d2i(peer_cert, NID_subject_alt_name, NULL, NULL); if (altnames) { int numalts = sk_GENERAL_NAME_num(altnames); debugs(83, 3, "Verifying server domain " << server << " to certificate subjectAltName");