From: Matt Caswell Date: Fri, 1 Jul 2016 18:15:05 +0000 (+0100) Subject: Use the SSL_METHODs passed to create_ssl_ctx_pair() X-Git-Tag: OpenSSL_1_1_0-pre6~285 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe964f0c88f6780fd30b26e306484b981b0a8480;p=oweals%2Fopenssl.git Use the SSL_METHODs passed to create_ssl_ctx_pair() Don't use hardcoded SSL_METHODs! Reviewed-by: Richard Levitte --- diff --git a/test/ssltestlib.c b/test/ssltestlib.c index 5f780d75b8..357ef00314 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;