projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e16987
)
Use the SSL_METHODs passed to create_ssl_ctx_pair()
author
Matt Caswell
<matt@openssl.org>
Fri, 1 Jul 2016 18:15:05 +0000
(19:15 +0100)
committer
Matt Caswell
<matt@openssl.org>
Fri, 1 Jul 2016 22:23:16 +0000
(23:23 +0100)
Don't use hardcoded SSL_METHODs!
Reviewed-by: Richard Levitte <levitte@openssl.org>
test/ssltestlib.c
patch
|
blob
|
history
diff --git
a/test/ssltestlib.c
b/test/ssltestlib.c
index 5f780d75b8680835d37ba10ef8d654bb175208f7..357ef003149759a6fdd38f7298b2904cc2bd505d 100644
(file)
--- 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;