diff options
| author | tb <> | 2022-07-20 13:35:05 +0000 |
|---|---|---|
| committer | tb <> | 2022-07-20 13:35:05 +0000 |
| commit | c02e9022095ee758d22525cc2a119b410ca01322 (patch) | |
| tree | e2964705fcaab534cb0031cc474b50f615a22537 /src/lib/libssl/ssl_tlsext.h | |
| parent | c883f86bc052054b4a1fc92fd72cc4c7ea17657e (diff) | |
| download | openbsd-c02e9022095ee758d22525cc2a119b410ca01322.tar.gz openbsd-c02e9022095ee758d22525cc2a119b410ca01322.tar.bz2 openbsd-c02e9022095ee758d22525cc2a119b410ca01322.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.h | 3 |
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 | ||
| 34 | int tlsext_alpn_check_format(CBS *cbs); | ||
| 34 | int tlsext_alpn_client_needs(SSL *s, uint16_t msg_type); | 35 | int tlsext_alpn_client_needs(SSL *s, uint16_t msg_type); |
| 35 | int tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb); | 36 | int tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb); |
| 36 | int tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); | 37 | int tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); |
