diff options
Diffstat (limited to 'src/regress/lib/libssl/interop/client.c')
| -rw-r--r-- | src/regress/lib/libssl/interop/client.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/interop/client.c b/src/regress/lib/libssl/interop/client.c index 9d56182932..60fb718fdb 100644 --- a/src/regress/lib/libssl/interop/client.c +++ b/src/regress/lib/libssl/interop/client.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: client.c,v 1.2 2018/11/07 06:29:26 bluhm Exp $ */ | 1 | /* $OpenBSD: client.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 | * |
| @@ -65,9 +65,15 @@ main(int argc, char *argv[]) | |||
| 65 | print_version(); | 65 | print_version(); |
| 66 | 66 | ||
| 67 | /* setup method and context */ | 67 | /* setup method and context */ |
| 68 | #if OPENSSL_VERSION_NUMBER >= 0x1010000f | ||
| 69 | method = TLS_client_method(); | ||
| 70 | if (method == NULL) | ||
| 71 | err_ssl(1, "TLS_client_method"); | ||
| 72 | #else | ||
| 68 | method = SSLv23_client_method(); | 73 | method = SSLv23_client_method(); |
| 69 | if (method == NULL) | 74 | if (method == NULL) |
| 70 | err_ssl(1, "SSLv23_client_method"); | 75 | err_ssl(1, "SSLv23_client_method"); |
| 76 | #endif | ||
| 71 | ctx = SSL_CTX_new(method); | 77 | ctx = SSL_CTX_new(method); |
| 72 | if (ctx == NULL) | 78 | if (ctx == NULL) |
| 73 | err_ssl(1, "SSL_CTX_new"); | 79 | err_ssl(1, "SSL_CTX_new"); |
