diff options
author | tb <> | 2020-07-03 04:12:51 +0000 |
---|---|---|
committer | tb <> | 2020-07-03 04:12:51 +0000 |
commit | 19ec1b6acc3e3c1c1156d9578424119a3a98dd63 (patch) | |
tree | ccbfc5a18a8593e33c9c504671e7d32e7f8e6c1a /src/lib/libssl/ssl_tlsext.h | |
parent | ba5d20ce0e8a0f27f37d05f5e9e4457b8712655d (diff) | |
download | openbsd-19ec1b6acc3e3c1c1156d9578424119a3a98dd63.tar.gz openbsd-19ec1b6acc3e3c1c1156d9578424119a3a98dd63.tar.bz2 openbsd-19ec1b6acc3e3c1c1156d9578424119a3a98dd63.zip |
Improve argument order for the internal tlsext API
Move is_server and msg_type right after the SSL object so that CBS
and CBB and alert come last. This brings these functions more in
line with other internal functions and separates state from data.
requested by jsing
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.h')
-rw-r--r-- | src/lib/libssl/ssl_tlsext.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_tlsext.h b/src/lib/libssl/ssl_tlsext.h index 15e0257e63..e2aafa7815 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.23 2020/05/23 17:13:24 beck Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.h,v 1.24 2020/07/03 04:12:51 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> |
@@ -118,11 +118,11 @@ int tlsext_srtp_server_build(SSL *s, CBB *cbb); | |||
118 | int tlsext_srtp_server_parse(SSL *s, CBS *cbs, int *alert); | 118 | int tlsext_srtp_server_parse(SSL *s, CBS *cbs, int *alert); |
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | int tlsext_client_build(SSL *s, CBB *cbb, uint16_t msg_type); | 121 | int tlsext_client_build(SSL *s, uint16_t msg_type, CBB *cbb); |
122 | int tlsext_client_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type); | 122 | int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); |
123 | 123 | ||
124 | int tlsext_server_build(SSL *s, CBB *cbb, uint16_t msg_type); | 124 | int tlsext_server_build(SSL *s, uint16_t msg_type, CBB *cbb); |
125 | int tlsext_server_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type); | 125 | int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); |
126 | 126 | ||
127 | struct tls_extension *tls_extension_find(uint16_t, size_t *); | 127 | struct tls_extension *tls_extension_find(uint16_t, size_t *); |
128 | int tlsext_extension_seen(SSL *s, uint16_t); | 128 | int tlsext_extension_seen(SSL *s, uint16_t); |