]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: SSL_CTX_set_msg_callback() needs openssl >= 0.9.7
authorWilly Tarreau <w@1wt.eu>
Thu, 8 May 2014 20:45:11 +0000 (22:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 May 2014 20:46:31 +0000 (22:46 +0200)
1.5-dev24 introduced SSL_CTX_set_msg_callback(), which came with OpenSSL
0.9.7. A build attempt with an older one failed and we're still compatible
with 0.9.6 in 1.5.

src/ssl_sock.c

index 229290f864bc0e1e5b933aa4d94466b175a5ec3f..dae8a3879d8a2cb8bee9502cbb4ccb34ee1b1565 100644 (file)
@@ -829,7 +829,9 @@ int ssl_sock_prepare_ctx(struct bind_conf *bind_conf, SSL_CTX *ctx, struct proxy
        }
 
        SSL_CTX_set_info_callback(ctx, ssl_sock_infocbk);
+#if OPENSSL_VERSION_NUMBER >= 0x00907000L
        SSL_CTX_set_msg_callback(ctx, ssl_sock_msgcbk);
+#endif
 
 #ifdef OPENSSL_NPN_NEGOTIATED
        if (bind_conf->npn_str)