You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@serf.apache.org by st...@apache.org on 2016/12/20 09:48:20 UTC
svn commit: r1775240 - /serf/trunk/buckets/ssl_buckets.c
Author: stsp
Date: Tue Dec 20 09:48:20 2016
New Revision: 1775240
URL: http://svn.apache.org/viewvc?rev=1775240&view=rev
Log:
Fix another build problem with LibreSSL.
* buckets/ssl_buckets.c
(detect_renegotiate): Check for SSL_ST_RENEGOTIATE macro directly
instead of assuming that USE_LEGACY_OPENSSL tells the truth.
Modified:
serf/trunk/buckets/ssl_buckets.c
Modified: serf/trunk/buckets/ssl_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/ssl_buckets.c?rev=1775240&r1=1775239&r2=1775240&view=diff
==============================================================================
--- serf/trunk/buckets/ssl_buckets.c (original)
+++ serf/trunk/buckets/ssl_buckets.c Tue Dec 20 09:48:20 2016
@@ -300,7 +300,7 @@ detect_renegotiate(const SSL *s, int whe
#endif
/* The server asked to renegotiate the SSL session. */
-#ifndef USE_LEGACY_OPENSSL
+#ifndef SSL_ST_RENEGOTIATE
if (SSL_get_state(s) == TLS_ST_SW_HELLO_REQ) {
#else
if (SSL_state(s) == SSL_ST_RENEGOTIATE) {