Bug 45521 - Make mod_ssl compile with OpenSSL 0.9.9/SNAP-20080605 or later
Summary: Make mod_ssl compile with OpenSSL 0.9.9/SNAP-20080605 or later
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ssl (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-01 04:22 UTC by Kaspar Brand
Modified: 2009-03-02 15:21 UTC (History)
0 users



Attachments
Proposed changes for OpenSSL 0.9.9 compatibility (2.71 KB, patch)
2008-08-01 04:22 UTC, Kaspar Brand
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaspar Brand 2008-08-01 04:22:24 UTC
Created attachment 22343 [details]
Proposed changes for OpenSSL 0.9.9 compatibility

In early June, further type-checking enhancements to OpenSSL were committed (http://cvs.openssl.org/chngview?cn=17247), and at the same time the declaration of the STACK struct was removed from stack.h.

This now leads to errors such as

ssl_engine_init.c: In function 'ssl_init_ctx_verify':
ssl_engine_init.c:576: error: 'STACK' undeclared (first use in this function)
ssl_engine_init.c:576: error: (Each undeclared identifier is reported only once
ssl_engine_init.c:576: error: for each function it appears in.)
ssl_engine_init.c:576: error: expected expression before ')' token

when compiling mod_ssl against 0.9.9. The attached patch fixes these issues (as well as some additional warnings showing up with 0.9.9).
Comment 1 Joe Orton 2008-09-30 13:14:08 UTC
Does this break compilation with any older version of OpenSSL, have you tested?
Comment 2 Kaspar Brand 2008-10-01 22:09:21 UTC
(In reply to comment #1)
> Does this break compilation with any older version of OpenSSL, have you tested?

Depends on what exactly you mean with "any older version"... STACK_OF(X509) has been introduced with OpenSSL 0.9.3 (released in May 1993), EXTENDED_KEY_USAGE has been available since version 0.9.7 (December 2002).
Comment 3 Sander Temme 2009-03-02 15:21:11 UTC
Fixed in r748396, r749466, r749467.