]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_kernel.c (ssl_hook_Fixup): Only set the
authorJoe Orton <jorton@apache.org>
Thu, 4 Feb 2010 14:28:15 +0000 (14:28 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 4 Feb 2010 14:28:15 +0000 (14:28 +0000)
  "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

modules/ssl/ssl_engine_kernel.c

index e4757e762b45df9942c46f29b69ccf900cf3b316..0529ead0e8330544e49425b0215b8958ffa65049 100644 (file)
@@ -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;
 }