[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Fri Jul 1 22:25:19 UTC 2016


The branch master has been updated
       via  fe964f0c88f6780fd30b26e306484b981b0a8480 (commit)
      from  1e16987fc18cce9420dd3b76326b8d25746fa258 (commit)


- Log -----------------------------------------------------------------
commit fe964f0c88f6780fd30b26e306484b981b0a8480
Author: Matt Caswell <matt at openssl.org>
Date:   Fri Jul 1 19:15:05 2016 +0100

    Use the SSL_METHODs passed to create_ssl_ctx_pair()
    
    Don't use hardcoded SSL_METHODs!
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 test/ssltestlib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index 5f780d7..357ef00 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -16,8 +16,8 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm,
     SSL_CTX *serverctx = NULL;
     SSL_CTX *clientctx = NULL;
 
-    serverctx = SSL_CTX_new(TLS_server_method());
-    clientctx = SSL_CTX_new(TLS_client_method());
+    serverctx = SSL_CTX_new(sm);
+    clientctx = SSL_CTX_new(cm);
     if (serverctx == NULL || clientctx == NULL) {
         printf("Failed to create SSL_CTX\n");
         goto err;


More information about the openssl-commits mailing list