]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Adam Ciarcinski
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 25 Feb 2010 03:28:39 +0000 (16:28 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 25 Feb 2010 03:28:39 +0000 (16:28 +1300)
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.

src/ssl_support.cc

index d7300683bf089b1ac5c29e9ad1cc6beced2f0173..ff1ed1158db91f1940f9deddd3323314b5e66ff5 100644 (file)
@@ -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");