diff options
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libssl/interop/client.c | 16 | 
1 files changed, 14 insertions, 2 deletions
| diff --git a/src/regress/lib/libssl/interop/client.c b/src/regress/lib/libssl/interop/client.c index a8e66c2876..31a960381e 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.10 2020/09/14 00:51:04 bluhm Exp $ */ | 1 | /* $OpenBSD: client.c,v 1.11 2022/07/07 13:12:57 tb Exp $ */ | 
| 2 | /* | 2 | /* | 
| 3 | * Copyright (c) 2018-2019 Alexander Bluhm <bluhm@openbsd.org> | 3 | * Copyright (c) 2018-2019 Alexander Bluhm <bluhm@openbsd.org> | 
| 4 | * | 4 | * | 
| @@ -184,10 +184,22 @@ main(int argc, char *argv[]) | |||
| 184 | } | 184 | } | 
| 185 | 185 | ||
| 186 | if (listciphers) { | 186 | if (listciphers) { | 
| 187 | STACK_OF(SSL_CIPHER) *supported_ciphers; | ||
| 188 | |||
| 189 | #if OPENSSL_VERSION_NUMBER < 0x1010000f | ||
| 190 | #define SSL_get1_supported_ciphers SSL_get_ciphers | ||
| 191 | #endif | ||
| 187 | ssl = SSL_new(ctx); | 192 | ssl = SSL_new(ctx); | 
| 188 | if (ssl == NULL) | 193 | if (ssl == NULL) | 
| 189 | err_ssl(1, "SSL_new"); | 194 | err_ssl(1, "SSL_new"); | 
| 190 | print_ciphers(SSL_get_ciphers(ssl)); | 195 | supported_ciphers = SSL_get1_supported_ciphers(ssl); | 
| 196 | if (supported_ciphers == NULL) | ||
| 197 | err_ssl(1, "SSL_get1_supported_ciphers"); | ||
| 198 | print_ciphers(supported_ciphers); | ||
| 199 | |||
| 200 | #if OPENSSL_VERSION_NUMBER >= 0x1010000f | ||
| 201 | sk_SSL_CIPHER_free(supported_ciphers); | ||
| 202 | #endif | ||
| 191 | return 0; | 203 | return 0; | 
| 192 | } | 204 | } | 
| 193 | 205 | ||
