diff options
author | jsing <> | 2020-04-21 16:55:17 +0000 |
---|---|---|
committer | jsing <> | 2020-04-21 16:55:17 +0000 |
commit | 1844f7460b773d8974e63d5f022ffd6843c22fda (patch) | |
tree | 594de8fcf4c008ddd95ad2790318a2c619af7a78 /src/lib/libssl/tls13_internal.h | |
parent | 8ab293189552d72b08283999a617fe1bfd425eab (diff) | |
download | openbsd-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.h | 13 |
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 | ||
342 | extern uint8_t tls13_downgrade_12[8]; | 342 | extern const uint8_t tls13_downgrade_12[8]; |
343 | extern uint8_t tls13_downgrade_11[8]; | 343 | extern const uint8_t tls13_downgrade_11[8]; |
344 | extern uint8_t tls13_cert_verify_pad[64]; | 344 | extern const uint8_t tls13_hello_retry_request_hash[32]; |
345 | extern uint8_t tls13_cert_client_verify_context[]; | 345 | extern const uint8_t tls13_cert_verify_pad[64]; |
346 | extern uint8_t tls13_cert_server_verify_context[]; | 346 | extern const uint8_t tls13_cert_client_verify_context[]; |
347 | extern const uint8_t tls13_cert_server_verify_context[]; | ||
347 | 348 | ||
348 | __END_HIDDEN_DECLS | 349 | __END_HIDDEN_DECLS |
349 | 350 | ||