summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl.h
diff options
context:
space:
mode:
authordoug <>2015-07-19 06:31:32 +0000
committerdoug <>2015-07-19 06:31:32 +0000
commit915e1bd09b87e5d7402cab53ddc89bd039968fd4 (patch)
treee880527a1af6d90c596c3aef10956ea51a3d268e /src/lib/libssl/ssl.h
parentb3d9b986084188c42954e6d52677fe5f9b37f0e7 (diff)
downloadopenbsd-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.h5
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 */
1696const SSL_METHOD *TLSv1_2_server_method(void); /* TLSv1.2 */ 1696const SSL_METHOD *TLSv1_2_server_method(void); /* TLSv1.2 */
1697const SSL_METHOD *TLSv1_2_client_method(void); /* TLSv1.2 */ 1697const SSL_METHOD *TLSv1_2_client_method(void); /* TLSv1.2 */
1698 1698
1699const SSL_METHOD *TLS_method(void); /* TLS v1.0 or later */
1700const SSL_METHOD *TLS_server_method(void); /* TLS v1.0 or later */
1701const SSL_METHOD *TLS_client_method(void); /* TLS v1.0 or later */
1699 1702
1700const SSL_METHOD *DTLSv1_method(void); /* DTLSv1.0 */ 1703const SSL_METHOD *DTLSv1_method(void); /* DTLSv1.0 */
1701const SSL_METHOD *DTLSv1_server_method(void); /* DTLSv1.0 */ 1704const SSL_METHOD *DTLSv1_server_method(void); /* DTLSv1.0 */