summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl.h
diff options
context:
space:
mode:
authorjsing <>2020-09-13 16:49:05 +0000
committerjsing <>2020-09-13 16:49:05 +0000
commit0aa52b54c9a57f9625af2c4445b991cfdd4ad228 (patch)
treee245dcd6ff9d7a9822feff50c7792c76ecfa9dba /src/lib/libssl/ssl.h
parenta328631fddec2556ad8af08ce4de240790c537c9 (diff)
downloadopenbsd-0aa52b54c9a57f9625af2c4445b991cfdd4ad228.tar.gz
openbsd-0aa52b54c9a57f9625af2c4445b991cfdd4ad228.tar.bz2
openbsd-0aa52b54c9a57f9625af2c4445b991cfdd4ad228.zip
Implement SSL_{CTX_,}set_ciphersuites().
OpenSSL added a separate API for configuring TLSv1.3 ciphersuites. Provide this API, while retaining the current behaviour of being able to configure TLSv1.3 via the existing interface. Note that this is not currently exposed in the headers/exported symbols. ok beck@ inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r--src/lib/libssl/ssl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 4370c84cd7..eb288699b1 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.171 2020/03/16 15:25:13 tb Exp $ */ 1/* $OpenBSD: ssl.h,v 1.172 2020/09/13 16:49:05 jsing 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 *
@@ -1275,6 +1275,9 @@ void BIO_ssl_shutdown(BIO *ssl_bio);
1275 1275
1276STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx); 1276STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);
1277int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str); 1277int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
1278#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)
1279int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);
1280#endif
1278SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); 1281SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
1279void SSL_CTX_free(SSL_CTX *); 1282void SSL_CTX_free(SSL_CTX *);
1280int SSL_CTX_up_ref(SSL_CTX *ctx); 1283int SSL_CTX_up_ref(SSL_CTX *ctx);
@@ -1316,6 +1319,9 @@ void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
1316BIO * SSL_get_rbio(const SSL *s); 1319BIO * SSL_get_rbio(const SSL *s);
1317BIO * SSL_get_wbio(const SSL *s); 1320BIO * SSL_get_wbio(const SSL *s);
1318int SSL_set_cipher_list(SSL *s, const char *str); 1321int SSL_set_cipher_list(SSL *s, const char *str);
1322#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)
1323int SSL_set_ciphersuites(SSL *s, const char *str);
1324#endif
1319void SSL_set_read_ahead(SSL *s, int yes); 1325void SSL_set_read_ahead(SSL *s, int yes);
1320int SSL_get_verify_mode(const SSL *s); 1326int SSL_get_verify_mode(const SSL *s);
1321int SSL_get_verify_depth(const SSL *s); 1327int SSL_get_verify_depth(const SSL *s);