You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2007/03/21 02:39:34 UTC

[PATCH]es More descriptive mod_ssl/OpenSSL version logging

William A. Rowe, Jr. wrote:
> httpd was patched for httpd -v some time ago to report both the compiled
> and loaded versions of apr[-util].
> 
> I'd like to get this into trunk/2.2/2.0 similarly for openssl.
> 
> It's very common for users to hotfix openssl for security vulnerabilities,
> but the apache error log remains 'scary' to auditors and administrators...
> 
> [Tue Mar 20 15:54:21 2007] [notice] Apache/2.0.59 (Unix) DAV/2 CovalentSNMP/3.0.
> 3 mod_jk/1.2.18 mod_ssl/2.0.59 OpenSSL/0.9.7i PHP/4.4.4 mod_perl/1.999.21 Perl/v
> 5.8.8 configured -- resuming normal operations
> [Tue Mar 20 15:59:51 2007] [info] Server: Apache/2.0.59, Interface: mod_ssl/2.0.
> 59, Library: OpenSSL/0.9.7i

After looking at the code, I see we shifted to the (OpenSSL only breaking
SSL-C toolkit support) SSLeay_version a while back, but it's still not
sufficient IMHO.  I'm proposing the attached patches which

*) adds compile-time/run time SSL-C version support
*) simplify a ton of overly-verbose legacy code
*) split the compiled-against v.s. runtime library
*) precache the results of the version string touchup

Patches to trunk/2.2/2.0 attached - comments (or votes) please?

Bill


Re: [PATCH]es More descriptive mod_ssl/OpenSSL version logging

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
William A. Rowe, Jr. wrote:
> William A. Rowe, Jr. wrote:
>> httpd was patched for httpd -v some time ago to report both the compiled
>> and loaded versions of apr[-util].
>>
>> I'd like to get this into trunk/2.2/2.0 similarly for openssl.
>>
>> It's very common for users to hotfix openssl for security vulnerabilities,
>> but the apache error log remains 'scary' to auditors and administrators...
>>
>> [Tue Mar 20 15:54:21 2007] [notice] Apache/2.0.59 (Unix) DAV/2 CovalentSNMP/3.0.
>> 3 mod_jk/1.2.18 mod_ssl/2.0.59 OpenSSL/0.9.7i PHP/4.4.4 mod_perl/1.999.21 Perl/v
>> 5.8.8 configured -- resuming normal operations
>> [Tue Mar 20 15:59:51 2007] [info] Server: Apache/2.0.59, Interface: mod_ssl/2.0.
>> 59, Library: OpenSSL/0.9.7i

Committed to trunk for your review, but unless you deliberately trip this,
you probably wouldn't notice the case such as...

[Tue Mar 20 20:19:22 2007] [info] mod_ssl/2.0.59 compiled against Server:
Apache/2.0.59, Library: OpenSSL/0.9.7l
[Tue Mar 20 20:19:22 2007] [notice] Apache/2.0.59 (Unix) DAV/2
CovalentSNMP/3.0.3 mod_jk/1.2.18 mod_ssl/2.0.59 OpenSSL/0.9.7g-fips PHP/4.4.4
mod_perl/1.999.21 Perl/v5.8.8 configured -- resuming normal operations

This illustrates mod_ssl built against OpenSSL/0.9.7l, but actually
running against OpenSSL/0.9.7g-fips.

Bill