summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authortb <>2020-07-03 04:12:51 +0000
committertb <>2020-07-03 04:12:51 +0000
commit3634005e8a2051a239211f692a45371c14e9d8e4 (patch)
treeccbfc5a18a8593e33c9c504671e7d32e7f8e6c1a /src/lib/libssl/tls13_internal.h
parent310bee1edf5b91769a0ac118970281584681c964 (diff)
downloadopenbsd-3634005e8a2051a239211f692a45371c14e9d8e4.tar.gz
openbsd-3634005e8a2051a239211f692a45371c14e9d8e4.tar.bz2
openbsd-3634005e8a2051a239211f692a45371c14e9d8e4.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 '')
-rw-r--r--src/lib/libssl/tls13_internal.h4
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
384void tls13_error_clear(struct tls13_error *error); 384void tls13_error_clear(struct tls13_error *error);
385int tls13_cert_add(struct tls13_ctx *ctx, CBB *cbb, X509 *cert, 385int 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
388int tls13_synthetic_handshake_message(struct tls13_ctx *ctx); 388int tls13_synthetic_handshake_message(struct tls13_ctx *ctx);
389int tls13_clienthello_hash_init(struct tls13_ctx *ctx); 389int tls13_clienthello_hash_init(struct tls13_ctx *ctx);