diff options
Diffstat (limited to 'src/regress/lib/libssl/interop/server.c')
| -rw-r--r-- | src/regress/lib/libssl/interop/server.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/interop/server.c b/src/regress/lib/libssl/interop/server.c index 6f40c4899c..0aece87583 100644 --- a/src/regress/lib/libssl/interop/server.c +++ b/src/regress/lib/libssl/interop/server.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: server.c,v 1.2 2018/11/07 06:29:26 bluhm Exp $ */ | 1 | /* $OpenBSD: server.c,v 1.3 2018/11/07 19:09:01 bluhm Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> | 3 | * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> |
| 4 | * | 4 | * |
| @@ -69,9 +69,15 @@ main(int argc, char *argv[]) | |||
| 69 | print_version(); | 69 | print_version(); |
| 70 | 70 | ||
| 71 | /* setup method and context */ | 71 | /* setup method and context */ |
| 72 | #if OPENSSL_VERSION_NUMBER >= 0x1010000f | ||
| 73 | method = TLS_server_method(); | ||
| 74 | if (method == NULL) | ||
| 75 | err_ssl(1, "TLS_server_method"); | ||
| 76 | #else | ||
| 72 | method = SSLv23_server_method(); | 77 | method = SSLv23_server_method(); |
| 73 | if (method == NULL) | 78 | if (method == NULL) |
| 74 | err_ssl(1, "SSLv23_server_method"); | 79 | err_ssl(1, "SSLv23_server_method"); |
| 80 | #endif | ||
| 75 | ctx = SSL_CTX_new(method); | 81 | ctx = SSL_CTX_new(method); |
| 76 | if (ctx == NULL) | 82 | if (ctx == NULL) |
| 77 | err_ssl(1, "SSL_CTX_new"); | 83 | err_ssl(1, "SSL_CTX_new"); |
