diff options
| author | tb <> | 2023-12-30 18:26:13 +0000 |
|---|---|---|
| committer | tb <> | 2023-12-30 18:26:13 +0000 |
| commit | aee3698526040bf0db8bbec7b580fd140412c927 (patch) | |
| tree | b928151a8024fc766d310fe466f9e0f91fa796c4 /src | |
| parent | 4c4f3bc8ce76bae155c4f1dfe311d3444e35b3ec (diff) | |
| download | openbsd-aee3698526040bf0db8bbec7b580fd140412c927.tar.gz openbsd-aee3698526040bf0db8bbec7b580fd140412c927.tar.bz2 openbsd-aee3698526040bf0db8bbec7b580fd140412c927.zip | |
Make x509_issuer_cache_free_oldest() static
This is an internal function and you can't hold the required mutex
to call it anyway since that's internal, too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_issuer_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_issuer_cache.c b/src/lib/libcrypto/x509/x509_issuer_cache.c index 0251cac285..070e85b0a9 100644 --- a/src/lib/libcrypto/x509/x509_issuer_cache.c +++ b/src/lib/libcrypto/x509/x509_issuer_cache.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_issuer_cache.c,v 1.6 2023/12/30 18:22:52 tb Exp $ */ | 1 | /* $OpenBSD: x509_issuer_cache.c,v 1.7 2023/12/30 18:26:13 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -78,7 +78,7 @@ x509_issuer_cache_set_max(size_t max) | |||
| 78 | * if an entry was successfully freed, 0 otherwise. Must | 78 | * if an entry was successfully freed, 0 otherwise. Must |
| 79 | * be called with x509_issuer_tree_mutex held. | 79 | * be called with x509_issuer_tree_mutex held. |
| 80 | */ | 80 | */ |
| 81 | void | 81 | static void |
| 82 | x509_issuer_cache_free_oldest(void) | 82 | x509_issuer_cache_free_oldest(void) |
| 83 | { | 83 | { |
| 84 | struct x509_issuer *old; | 84 | struct x509_issuer *old; |
