diff options
author | doug <> | 2015-07-19 06:31:32 +0000 |
---|---|---|
committer | doug <> | 2015-07-19 06:31:32 +0000 |
commit | 915e1bd09b87e5d7402cab53ddc89bd039968fd4 (patch) | |
tree | e880527a1af6d90c596c3aef10956ea51a3d268e /src/lib/libssl/ssl.h | |
parent | b3d9b986084188c42954e6d52677fe5f9b37f0e7 (diff) | |
download | openbsd-915e1bd09b87e5d7402cab53ddc89bd039968fd4.tar.gz openbsd-915e1bd09b87e5d7402cab53ddc89bd039968fd4.tar.bz2 openbsd-915e1bd09b87e5d7402cab53ddc89bd039968fd4.zip |
Add TLS_method, TLS_client_method and TLS_server_method.
Use these instead of SSLv23_*method when you want to make sure TLS is
used.
By default, we disable SSLv3 but it's still possible for the user to
re-enable it. TLS_*method does not allow SSLv3.
Both BoringSSL and (next version of) OpenSSL have these methods.
However, they have changed the implementation significantly. We will
as well, but not right now.
Riding the libssl major bump.
ok miod@ bcook@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/ssl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 0a0a711a20..0cd220778b 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.91 2015/07/18 19:41:54 doug Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.92 2015/07/19 06:31:32 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1696,6 +1696,9 @@ const SSL_METHOD *TLSv1_2_method(void); /* TLSv1.2 */ | |||
1696 | const SSL_METHOD *TLSv1_2_server_method(void); /* TLSv1.2 */ | 1696 | const SSL_METHOD *TLSv1_2_server_method(void); /* TLSv1.2 */ |
1697 | const SSL_METHOD *TLSv1_2_client_method(void); /* TLSv1.2 */ | 1697 | const SSL_METHOD *TLSv1_2_client_method(void); /* TLSv1.2 */ |
1698 | 1698 | ||
1699 | const SSL_METHOD *TLS_method(void); /* TLS v1.0 or later */ | ||
1700 | const SSL_METHOD *TLS_server_method(void); /* TLS v1.0 or later */ | ||
1701 | const SSL_METHOD *TLS_client_method(void); /* TLS v1.0 or later */ | ||
1699 | 1702 | ||
1700 | const SSL_METHOD *DTLSv1_method(void); /* DTLSv1.0 */ | 1703 | const SSL_METHOD *DTLSv1_method(void); /* DTLSv1.0 */ |
1701 | const SSL_METHOD *DTLSv1_server_method(void); /* DTLSv1.0 */ | 1704 | const SSL_METHOD *DTLSv1_server_method(void); /* DTLSv1.0 */ |