diff options
| author | kenjiro <> | 2026-07-31 03:59:50 +0000 |
|---|---|---|
| committer | kenjiro <> | 2026-07-31 03:59:50 +0000 |
| commit | 49ff7c051c516a8d190b62787dc46f76275da66a (patch) | |
| tree | a9311563e340cb83c56d4c2031c66386d2d03418 /src/lib/libssl/tls13_record_layer.c | |
| parent | 45c467b8b6c3ae8944860a1e15922142d083e4d5 (diff) | |
| download | openbsd-49ff7c051c516a8d190b62787dc46f76275da66a.tar.gz openbsd-49ff7c051c516a8d190b62787dc46f76275da66a.tar.bz2 openbsd-49ff7c051c516a8d190b62787dc46f76275da66a.zip | |
Make file-local functions static
These functions are only used within their implementation files and do
not need external linkage. Mark them static.
ok tb
Diffstat (limited to 'src/lib/libssl/tls13_record_layer.c')
| -rw-r--r-- | src/lib/libssl/tls13_record_layer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/tls13_record_layer.c b/src/lib/libssl/tls13_record_layer.c index f5604adbeb..778356af15 100644 --- a/src/lib/libssl/tls13_record_layer.c +++ b/src/lib/libssl/tls13_record_layer.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls13_record_layer.c,v 1.74 2024/09/09 03:32:29 tb Exp $ */ | 1 | /* $OpenBSD: tls13_record_layer.c,v 1.75 2026/07/31 03:59:50 kenjiro Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -31,13 +31,13 @@ struct tls13_record_protection { | |||
| 31 | uint8_t seq_num[TLS13_RECORD_SEQ_NUM_LEN]; | 31 | uint8_t seq_num[TLS13_RECORD_SEQ_NUM_LEN]; |
| 32 | }; | 32 | }; |
| 33 | 33 | ||
| 34 | struct tls13_record_protection * | 34 | static struct tls13_record_protection * |
| 35 | tls13_record_protection_new(void) | 35 | tls13_record_protection_new(void) |
| 36 | { | 36 | { |
| 37 | return calloc(1, sizeof(struct tls13_record_protection)); | 37 | return calloc(1, sizeof(struct tls13_record_protection)); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | void | 40 | static void |
| 41 | tls13_record_protection_clear(struct tls13_record_protection *rp) | 41 | tls13_record_protection_clear(struct tls13_record_protection *rp) |
| 42 | { | 42 | { |
| 43 | EVP_AEAD_CTX_free(rp->aead_ctx); | 43 | EVP_AEAD_CTX_free(rp->aead_ctx); |
| @@ -48,7 +48,7 @@ tls13_record_protection_clear(struct tls13_record_protection *rp) | |||
| 48 | memset(rp, 0, sizeof(*rp)); | 48 | memset(rp, 0, sizeof(*rp)); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void | 51 | static void |
| 52 | tls13_record_protection_free(struct tls13_record_protection *rp) | 52 | tls13_record_protection_free(struct tls13_record_protection *rp) |
| 53 | { | 53 | { |
| 54 | if (rp == NULL) | 54 | if (rp == NULL) |
