summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2020-04-21 16:55:17 +0000
committerjsing <>2020-04-21 16:55:17 +0000
commit1844f7460b773d8974e63d5f022ffd6843c22fda (patch)
tree594de8fcf4c008ddd95ad2790318a2c619af7a78 /src/lib/libssl/tls13_internal.h
parent8ab293189552d72b08283999a617fe1bfd425eab (diff)
downloadopenbsd-1844f7460b773d8974e63d5f022ffd6843c22fda.tar.gz
openbsd-1844f7460b773d8974e63d5f022ffd6843c22fda.tar.bz2
openbsd-1844f7460b773d8974e63d5f022ffd6843c22fda.zip
Consolidate TLSv1.3 constants.
Move all of the TLSv1.3 constants to the top of tls13_lib.c. Also mark these all as const so that they end up in .rodata rather than .data. ok tb@
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/tls13_internal.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 6f5f5197d0..c5b893bc16 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.63 2020/04/18 14:07:56 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.64 2020/04/21 16:55:17 jsing 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>
@@ -339,11 +339,12 @@ int tls13_error_setx(struct tls13_error *error, int code, int subcode,
339 tls13_error_setx(&(ctx)->error, (code), (subcode), __FILE__, __LINE__, \ 339 tls13_error_setx(&(ctx)->error, (code), (subcode), __FILE__, __LINE__, \
340 (fmt), __VA_ARGS__) 340 (fmt), __VA_ARGS__)
341 341
342extern uint8_t tls13_downgrade_12[8]; 342extern const uint8_t tls13_downgrade_12[8];
343extern uint8_t tls13_downgrade_11[8]; 343extern const uint8_t tls13_downgrade_11[8];
344extern uint8_t tls13_cert_verify_pad[64]; 344extern const uint8_t tls13_hello_retry_request_hash[32];
345extern uint8_t tls13_cert_client_verify_context[]; 345extern const uint8_t tls13_cert_verify_pad[64];
346extern uint8_t tls13_cert_server_verify_context[]; 346extern const uint8_t tls13_cert_client_verify_context[];
347extern const uint8_t tls13_cert_server_verify_context[];
347 348
348__END_HIDDEN_DECLS 349__END_HIDDEN_DECLS
349 350