summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_tlsext.h
diff options
context:
space:
mode:
authortb <>2022-07-20 13:35:05 +0000
committertb <>2022-07-20 13:35:05 +0000
commitdbae5c40b8895f3b49634f79c8ff8fb9e7ae7064 (patch)
treee2964705fcaab534cb0031cc474b50f615a22537 /src/lib/libssl/ssl_tlsext.h
parentccb4f685d743447d79e76e1380f93ba28b5b8e1e (diff)
downloadopenbsd-dbae5c40b8895f3b49634f79c8ff8fb9e7ae7064.tar.gz
openbsd-dbae5c40b8895f3b49634f79c8ff8fb9e7ae7064.tar.bz2
openbsd-dbae5c40b8895f3b49634f79c8ff8fb9e7ae7064.zip
Factor out ALPN extension format check
The ALPN extension must contain a non-empty list of protocol names. Split a check of this out of tlsext_alpn_server_parse() so that it can be reused elsewhere in the library. ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.h')
-rw-r--r--src/lib/libssl/ssl_tlsext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_tlsext.h b/src/lib/libssl/ssl_tlsext.h
index 268b274948..393ee5d90d 100644
--- a/src/lib/libssl/ssl_tlsext.h
+++ b/src/lib/libssl/ssl_tlsext.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_tlsext.h,v 1.30 2022/06/29 17:39:20 beck Exp $ */ 1/* $OpenBSD: ssl_tlsext.h,v 1.31 2022/07/20 13:35:05 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -31,6 +31,7 @@
31 31
32__BEGIN_HIDDEN_DECLS 32__BEGIN_HIDDEN_DECLS
33 33
34int tlsext_alpn_check_format(CBS *cbs);
34int tlsext_alpn_client_needs(SSL *s, uint16_t msg_type); 35int tlsext_alpn_client_needs(SSL *s, uint16_t msg_type);
35int tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb); 36int tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
36int tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); 37int tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);