From eb8dd9dca1228af0cd132f515509051ecfabf6f6 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 14 Apr 2025 17:32:06 +0000 Subject: This commit was manufactured by cvs2git to create tag 'tb_20250414'. --- src/lib/libcrypto/x509/x509_issuer_cache.h | 48 ------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 src/lib/libcrypto/x509/x509_issuer_cache.h (limited to 'src/lib/libcrypto/x509/x509_issuer_cache.h') diff --git a/src/lib/libcrypto/x509/x509_issuer_cache.h b/src/lib/libcrypto/x509/x509_issuer_cache.h deleted file mode 100644 index 00b18be0de..0000000000 --- a/src/lib/libcrypto/x509/x509_issuer_cache.h +++ /dev/null @@ -1,48 +0,0 @@ -/* $OpenBSD: x509_issuer_cache.h,v 1.3 2023/12/30 18:06:59 tb Exp $ */ -/* - * Copyright (c) 2020 Bob Beck - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/* x509_issuer_cache */ -#ifndef HEADER_X509_ISSUER_CACHE_H -#define HEADER_X509_ISSUER_CACHE_H - -#include -#include - -#include - -__BEGIN_HIDDEN_DECLS - -struct x509_issuer { - RB_ENTRY(x509_issuer) entry; - TAILQ_ENTRY(x509_issuer) queue; /* LRU of entries */ - /* parent_md and child_md must point to EVP_MAX_MD_SIZE of memory */ - unsigned char *parent_md; - unsigned char *child_md; - int valid; /* Result of signature validation. */ -}; - -#define X509_ISSUER_CACHE_MAX 40000 /* Approx 7.5 MB, entries 200 bytes */ - -int x509_issuer_cache_set_max(size_t max); -int x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md); -void x509_issuer_cache_add(unsigned char *parent_md, unsigned char *child_md, - int valid); -void x509_issuer_cache_free(void); - -__END_HIDDEN_DECLS - -#endif -- cgit v1.2.3-55-g6feb