summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_tlsext.h
diff options
context:
space:
mode:
authortb <>2020-07-03 04:12:51 +0000
committertb <>2020-07-03 04:12:51 +0000
commit19ec1b6acc3e3c1c1156d9578424119a3a98dd63 (patch)
treeccbfc5a18a8593e33c9c504671e7d32e7f8e6c1a /src/lib/libssl/ssl_tlsext.h
parentba5d20ce0e8a0f27f37d05f5e9e4457b8712655d (diff)
downloadopenbsd-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.h10
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);
118int tlsext_srtp_server_parse(SSL *s, CBS *cbs, int *alert); 118int tlsext_srtp_server_parse(SSL *s, CBS *cbs, int *alert);
119#endif 119#endif
120 120
121int tlsext_client_build(SSL *s, CBB *cbb, uint16_t msg_type); 121int tlsext_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
122int tlsext_client_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type); 122int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
123 123
124int tlsext_server_build(SSL *s, CBB *cbb, uint16_t msg_type); 124int tlsext_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
125int tlsext_server_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type); 125int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
126 126
127struct tls_extension *tls_extension_find(uint16_t, size_t *); 127struct tls_extension *tls_extension_find(uint16_t, size_t *);
128int tlsext_extension_seen(SSL *s, uint16_t); 128int tlsext_extension_seen(SSL *s, uint16_t);