From: Joe Orton Date: Thu, 4 Feb 2010 14:28:15 +0000 (+0000) Subject: * modules/ssl/ssl_engine_kernel.c (ssl_hook_Fixup): Only set the X-Git-Tag: 2.3.6~517 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41d7f374af6e9fbc9e8760125b5faef36c14762b;p=apache * modules/ssl/ssl_engine_kernel.c (ssl_hook_Fixup): Only set the "ssl-secure-reneg" note if the server supports secure negotiation, so that a '0' value is unambiguous. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@906491 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index e4757e762b..0529ead0e8 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -1192,14 +1192,10 @@ int ssl_hook_Fixup(request_rec *r) } - apr_table_setn(r->notes, "ssl-secure-reneg", #ifdef SSL_get_secure_renegotiation_support - SSL_get_secure_renegotiation_support(ssl) - ? "1" : "0" -#else - "0" + apr_table_setn(r->notes, "ssl-secure-reneg", + SSL_get_secure_renegotiation_support(ssl) ? "1" : "0"); #endif - ); return DECLINED; }