From: Amos Jeffries Date: Thu, 25 Feb 2010 03:28:39 +0000 (+1300) Subject: Author: Adam Ciarcinski X-Git-Tag: SQUID_3_2_0_1~402 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=531fc4375f5acc509af162506d2eadf4326a3640;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");