diff options
author | tb <> | 2022-07-14 08:35:15 +0000 |
---|---|---|
committer | tb <> | 2022-07-14 08:35:15 +0000 |
commit | 3c418ad36881212784c0f88ac3a708f026ec853e (patch) | |
tree | df263fc3d987ffa4c7beac26db8643ae6d98f5ad /src | |
parent | e345078d4cadc55151fab159d8ad1fb77d294d8a (diff) | |
download | openbsd-3c418ad36881212784c0f88ac3a708f026ec853e.tar.gz openbsd-3c418ad36881212784c0f88ac3a708f026ec853e.tar.bz2 openbsd-3c418ad36881212784c0f88ac3a708f026ec853e.zip |
Switch to using TLS_client_method()
Apparently, TLSv1_client_method() is used for historical reasons.
This behavior is no longer helpful if we want to know what ciphers
a TLS connection could use. This could change again after further
investigation of what the behavior should be...
ok beck jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/ciphers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ciphers.c b/src/usr.bin/openssl/ciphers.c index 6a96dfcc92..b60145c2a8 100644 --- a/src/usr.bin/openssl/ciphers.c +++ b/src/usr.bin/openssl/ciphers.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ciphers.c,v 1.11 2022/07/14 08:07:54 tb Exp $ */ | 1 | /* $OpenBSD: ciphers.c,v 1.12 2022/07/14 08:35:15 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -109,7 +109,7 @@ ciphers_main(int argc, char **argv) | |||
109 | return (1); | 109 | return (1); |
110 | } | 110 | } |
111 | 111 | ||
112 | if ((ssl_ctx = SSL_CTX_new(TLSv1_client_method())) == NULL) | 112 | if ((ssl_ctx = SSL_CTX_new(TLS_client_method())) == NULL) |
113 | goto err; | 113 | goto err; |
114 | 114 | ||
115 | if (cipherlist != NULL) { | 115 | if (cipherlist != NULL) { |