Make openssl 0.9.8l log message accurate

fixes 4837
This commit is contained in:
Nick Mathewson 2012-01-11 15:41:46 -05:00
parent b8675e5fe3
commit 411cf8f714
2 changed files with 8 additions and 2 deletions

4
changes/bug4837 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes:
- Fix the log message describing how we work around discovering
that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
4837; bugfix on 0.2.2.9-alpha.

View File

@ -475,8 +475,10 @@ tor_tls_init(void)
* a test of intelligence and determination. * a test of intelligence and determination.
*/ */
if (version > OPENSSL_V(0,9,8,'k') && version <= OPENSSL_V(0,9,8,'l')) { if (version > OPENSSL_V(0,9,8,'k') && version <= OPENSSL_V(0,9,8,'l')) {
log_notice(LD_GENERAL, "OpenSSL %s looks like version 0.9.8l; " log_notice(LD_GENERAL, "OpenSSL %s looks like version 0.9.8l, but "
"I will try SSL3_FLAGS to enable renegotation.", "some vendors have backported renegotiation code from "
"0.9.8m without updating the version number. "
"I will try SSL3_FLAGS and SSL_OP to enable renegotation.",
SSLeay_version(SSLEAY_VERSION)); SSLeay_version(SSLEAY_VERSION));
use_unsafe_renegotiation_flag = 1; use_unsafe_renegotiation_flag = 1;
use_unsafe_renegotiation_op = 1; use_unsafe_renegotiation_op = 1;