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/tls13_internal.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/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index a18184f505..f35f09bbb1 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_internal.h,v 1.84 2020/06/06 01:40:09 beck Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.85 2020/07/03 04:12:51 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -383,7 +383,7 @@ int tls13_server_finished_sent(struct tls13_ctx *ctx); | |||
383 | 383 | ||
384 | void tls13_error_clear(struct tls13_error *error); | 384 | void tls13_error_clear(struct tls13_error *error); |
385 | int tls13_cert_add(struct tls13_ctx *ctx, CBB *cbb, X509 *cert, | 385 | int tls13_cert_add(struct tls13_ctx *ctx, CBB *cbb, X509 *cert, |
386 | int(*build_extensions)(SSL *s, CBB *cbb, uint16_t msg_type)); | 386 | int(*build_extensions)(SSL *s, uint16_t msg_type, CBB *cbb)); |
387 | 387 | ||
388 | int tls13_synthetic_handshake_message(struct tls13_ctx *ctx); | 388 | int tls13_synthetic_handshake_message(struct tls13_ctx *ctx); |
389 | int tls13_clienthello_hash_init(struct tls13_ctx *ctx); | 389 | int tls13_clienthello_hash_init(struct tls13_ctx *ctx); |