summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
authorkenjiro <>2026-07-31 03:59:50 +0000
committerkenjiro <>2026-07-31 03:59:50 +0000
commit49ff7c051c516a8d190b62787dc46f76275da66a (patch)
treea9311563e340cb83c56d4c2031c66386d2d03418 /src/lib/libssl
parent45c467b8b6c3ae8944860a1e15922142d083e4d5 (diff)
downloadopenbsd-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')
-rw-r--r--src/lib/libssl/s3_lib.c6
-rw-r--r--src/lib/libssl/ssl_tlsext.c4
-rw-r--r--src/lib/libssl/tls13_record_layer.c8
-rw-r--r--src/lib/libssl/tls13_server.c4
4 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c
index df45df47fc..929de03a3d 100644
--- a/src/lib/libssl/s3_lib.c
+++ b/src/lib/libssl/s3_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_lib.c,v 1.260 2026/06/06 15:22:25 jsing Exp $ */ 1/* $OpenBSD: s3_lib.c,v 1.261 2026/07/31 03:59:50 kenjiro Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1379,7 +1379,7 @@ ssl3_clear(SSL *s)
1379 s->s3->hs.state = SSL_ST_BEFORE|((s->server) ? SSL_ST_ACCEPT : SSL_ST_CONNECT); 1379 s->s3->hs.state = SSL_ST_BEFORE|((s->server) ? SSL_ST_ACCEPT : SSL_ST_CONNECT);
1380} 1380}
1381 1381
1382long 1382static long
1383_SSL_get_shared_group(SSL *s, long n) 1383_SSL_get_shared_group(SSL *s, long n)
1384{ 1384{
1385 size_t count; 1385 size_t count;
@@ -1412,7 +1412,7 @@ _SSL_get_shared_group(SSL *s, long n)
1412 return nid; 1412 return nid;
1413} 1413}
1414 1414
1415long 1415static long
1416_SSL_get_peer_tmp_key(SSL *s, EVP_PKEY **key) 1416_SSL_get_peer_tmp_key(SSL *s, EVP_PKEY **key)
1417{ 1417{
1418 EVP_PKEY *pkey = NULL; 1418 EVP_PKEY *pkey = NULL;
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c
index 2755cbc92d..467784da2b 100644
--- a/src/lib/libssl/ssl_tlsext.c
+++ b/src/lib/libssl/ssl_tlsext.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_tlsext.c,v 1.163 2026/06/14 15:47:49 jsing Exp $ */ 1/* $OpenBSD: ssl_tlsext.c,v 1.164 2026/07/31 03:59:50 kenjiro Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2567,7 +2567,7 @@ tlsext_build(SSL *s, int is_server, uint16_t msg_type, CBB *cbb)
2567 return 1; 2567 return 1;
2568} 2568}
2569 2569
2570int 2570static int
2571tlsext_clienthello_hash_extension(SSL *s, uint16_t type, CBS *cbs) 2571tlsext_clienthello_hash_extension(SSL *s, uint16_t type, CBS *cbs)
2572{ 2572{
2573 /* 2573 /*
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
34struct tls13_record_protection * 34static struct tls13_record_protection *
35tls13_record_protection_new(void) 35tls13_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
40void 40static void
41tls13_record_protection_clear(struct tls13_record_protection *rp) 41tls13_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
51void 51static void
52tls13_record_protection_free(struct tls13_record_protection *rp) 52tls13_record_protection_free(struct tls13_record_protection *rp)
53{ 53{
54 if (rp == NULL) 54 if (rp == NULL)
diff --git a/src/lib/libssl/tls13_server.c b/src/lib/libssl/tls13_server.c
index 604dab4cba..8ad11c6428 100644
--- a/src/lib/libssl/tls13_server.c
+++ b/src/lib/libssl/tls13_server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_server.c,v 1.112 2025/12/04 21:03:42 beck Exp $ */ 1/* $OpenBSD: tls13_server.c,v 1.113 2026/07/31 03:59:50 kenjiro Exp $ */
2/* 2/*
3 * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
@@ -96,7 +96,7 @@ tls13_client_hello_is_legacy(CBS *cbs)
96 return (max_version < TLS1_3_VERSION); 96 return (max_version < TLS1_3_VERSION);
97} 97}
98 98
99int 99static int
100tls13_client_hello_required_extensions(struct tls13_ctx *ctx) 100tls13_client_hello_required_extensions(struct tls13_ctx *ctx)
101{ 101{
102 SSL *s = ctx->ssl; 102 SSL *s = ctx->ssl;