BUILD: ssl: SSL_CTX_set_msg_callback() needs openssl >= 0.9.7
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.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index 229290f..dae8a38 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -829,7 +829,9 @@
}
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)