summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <>2022-07-17 14:49:01 +0000
committerjsing <>2022-07-17 14:49:01 +0000
commit3100db9e08c1bf8ebeaea72f76c09b995e5a3159 (patch)
tree001241ad56345d0205d73382768f030dbfa74ebd /src/lib/libssl/ssl_lib.c
parent829a175777a008e2d7293b56bb0b6fb5056b0d29 (diff)
downloadopenbsd-3100db9e08c1bf8ebeaea72f76c09b995e5a3159.tar.gz
openbsd-3100db9e08c1bf8ebeaea72f76c09b995e5a3159.tar.bz2
openbsd-3100db9e08c1bf8ebeaea72f76c09b995e5a3159.zip
Provide SSL_is_quic()
This function will allow code to know if the SSL connection is configured for use with QUIC or not. Also move existing SSL_.*quic.* functions under LIBRESSL_HAS_QUIC to prevent exposing them prematurely. ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 2cdcef444c..860a58ddd1 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.295 2022/07/02 16:31:04 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.296 2022/07/17 14:49:01 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 *
@@ -3316,6 +3316,12 @@ OBJ_bsearch_ssl_cipher_id(SSL_CIPHER *key, SSL_CIPHER const *base, int num)
3316} 3316}
3317 3317
3318int 3318int
3319SSL_is_quic(const SSL *ssl)
3320{
3321 return ssl->quic_method != NULL;
3322}
3323
3324int
3319SSL_set_quic_transport_params(SSL *ssl, const uint8_t *params, 3325SSL_set_quic_transport_params(SSL *ssl, const uint8_t *params,
3320 size_t params_len) 3326 size_t params_len)
3321{ 3327{