summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_verify.h
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2025-04-14 17:32:06 +0000
committercvs2svn <admin@example.com>2025-04-14 17:32:06 +0000
commiteb8dd9dca1228af0cd132f515509051ecfabf6f6 (patch)
treeedb6da6af7e865d488dc1a29309f1e1ec226e603 /src/lib/libcrypto/x509/x509_verify.h
parent247f0352e0ed72a4f476db9dc91f4d982bc83eb2 (diff)
downloadopenbsd-tb_20250414.tar.gz
openbsd-tb_20250414.tar.bz2
openbsd-tb_20250414.zip
This commit was manufactured by cvs2git to create tag 'tb_20250414'.tb_20250414
Diffstat (limited to 'src/lib/libcrypto/x509/x509_verify.h')
-rw-r--r--src/lib/libcrypto/x509/x509_verify.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.h b/src/lib/libcrypto/x509/x509_verify.h
deleted file mode 100644
index d8d2cb0b5f..0000000000
--- a/src/lib/libcrypto/x509/x509_verify.h
+++ /dev/null
@@ -1,43 +0,0 @@
1/* $OpenBSD: x509_verify.h,v 1.2 2021/11/04 23:52:34 beck Exp $ */
2/*
3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */
17#ifndef HEADER_X509_VERIFY_H
18#define HEADER_X509_VERIFY_H
19
20#ifdef LIBRESSL_INTERNAL
21struct x509_verify_ctx;
22struct x509_verify_cert_info;
23typedef struct x509_verify_ctx X509_VERIFY_CTX;
24
25X509_VERIFY_CTX *x509_verify_ctx_new(STACK_OF(X509) *roots);
26void x509_verify_ctx_free(struct x509_verify_ctx *ctx);
27
28int x509_verify_ctx_set_max_depth(X509_VERIFY_CTX *ctx, size_t max);
29int x509_verify_ctx_set_max_chains(X509_VERIFY_CTX *ctx, size_t max);
30int x509_verify_ctx_set_max_signatures(X509_VERIFY_CTX *ctx, size_t max);
31int x509_verify_ctx_set_purpose(X509_VERIFY_CTX *ctx, int purpose_id);
32int x509_verify_ctx_set_intermediates(X509_VERIFY_CTX *ctx,
33 STACK_OF(X509) *intermediates);
34
35const char *x509_verify_ctx_error_string(X509_VERIFY_CTX *ctx);
36size_t x509_verify_ctx_error_depth(X509_VERIFY_CTX *ctx);
37
38STACK_OF(X509) *x509_verify_ctx_chain(X509_VERIFY_CTX *ctx, size_t chain);
39
40size_t x509_verify(X509_VERIFY_CTX *ctx, X509 *leaf, char *name);
41#endif
42
43#endif