This is an automated email from the ASF dual-hosted git repository.

shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 726c2d3  Add ifdef so tls test client will compile on non-openssl-1.1.x
726c2d3 is described below

commit 726c2d3a239a544c57b93badc6635454e85a703b
Author: Susan Hinrichs <[email protected]>
AuthorDate: Wed Jan 16 13:13:08 2019 -0600

    Add ifdef so tls test client will compile on non-openssl-1.1.x
---
 tests/gold_tests/tls/ssl-post.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/gold_tests/tls/ssl-post.c b/tests/gold_tests/tls/ssl-post.c
index 00dc3a0..1b3a2fb 100644
--- a/tests/gold_tests/tls/ssl-post.c
+++ b/tests/gold_tests/tls/ssl-post.c
@@ -89,7 +89,10 @@ spawn_same_session_send(void *arg)
 
   SSL_CTX *client_ctx = SSL_CTX_new(SSLv23_client_method());
   SSL *ssl            = SSL_new(client_ctx);
+#if OPENSSL_VERSION_NUMBER >= 0x10100000
   SSL_set_max_proto_version(ssl, TLS1_2_VERSION);
+#endif
+
   SSL_set_session(ssl, tinfo->session);
 
   SSL_set_fd(ssl, sfd);
@@ -283,7 +286,9 @@ main(int argc, char *argv[])
 
   SSL_CTX *client_ctx = SSL_CTX_new(SSLv23_client_method());
   SSL *ssl            = SSL_new(client_ctx);
+#if OPENSSL_VERSION_NUMBER >= 0x10100000
   SSL_set_max_proto_version(ssl, TLS1_2_VERSION);
+#endif
 
   SSL_set_fd(ssl, sfd);
   int ret         = SSL_connect(ssl);

Reply via email to