summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-16 18:42:30 +0000
committertb <>2023-04-16 18:42:30 +0000
commitaaf55fdba134804a9eb1a42c03415548fbd2b490 (patch)
treeea2522aa9ce34924692861107efecc3e998cd3d1 /src/lib
parent3142f6dc26e453ca269ab50d6c1b81f138e16f52 (diff)
downloadopenbsd-aaf55fdba134804a9eb1a42c03415548fbd2b490.tar.gz
openbsd-aaf55fdba134804a9eb1a42c03415548fbd2b490.tar.bz2
openbsd-aaf55fdba134804a9eb1a42c03415548fbd2b490.zip
Move X509_VERIFY_PARAM_st from vpm_int.h to x509_local.h
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/vpm_int.h13
-rw-r--r--src/lib/libcrypto/x509/x509_local.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/libcrypto/x509/vpm_int.h b/src/lib/libcrypto/x509/vpm_int.h
index 7fc9fef761..d50c5e46fd 100644
--- a/src/lib/libcrypto/x509/vpm_int.h
+++ b/src/lib/libcrypto/x509/vpm_int.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: vpm_int.h,v 1.4 2018/04/06 07:08:20 beck Exp $ */ 1/* $OpenBSD: vpm_int.h,v 1.5 2023/04/16 18:42:30 tb Exp $ */
2/* 2/*
3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project 3 * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
4 * 2013. 4 * 2013.
@@ -61,15 +61,4 @@ __BEGIN_HIDDEN_DECLS
61 61
62/* internal only structure to hold additional X509_VERIFY_PARAM data */ 62/* internal only structure to hold additional X509_VERIFY_PARAM data */
63 63
64struct X509_VERIFY_PARAM_ID_st {
65 STACK_OF(OPENSSL_STRING) *hosts; /* Set of acceptable names */
66 unsigned int hostflags; /* Flags to control matching features */
67 char *peername; /* Matching hostname in peer certificate */
68 char *email; /* If not NULL email address to match */
69 size_t emaillen;
70 unsigned char *ip; /* If not NULL IP address to match */
71 size_t iplen; /* Length of IP address */
72 int poisoned;
73};
74
75__END_HIDDEN_DECLS 64__END_HIDDEN_DECLS
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h
index 6792a3c5b8..043fc2dacf 100644
--- a/src/lib/libcrypto/x509/x509_local.h
+++ b/src/lib/libcrypto/x509/x509_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_local.h,v 1.3 2023/04/16 08:08:34 tb Exp $ */ 1/* $OpenBSD: x509_local.h,v 1.4 2023/04/16 18:42:30 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2013. 3 * project 2013.
4 */ 4 */
@@ -370,6 +370,17 @@ struct x509_store_ctx_st {
370 CRYPTO_EX_DATA ex_data; 370 CRYPTO_EX_DATA ex_data;
371} /* X509_STORE_CTX */; 371} /* X509_STORE_CTX */;
372 372
373struct X509_VERIFY_PARAM_ID_st {
374 STACK_OF(OPENSSL_STRING) *hosts; /* Set of acceptable names */
375 unsigned int hostflags; /* Flags to control matching features */
376 char *peername; /* Matching hostname in peer certificate */
377 char *email; /* If not NULL email address to match */
378 size_t emaillen;
379 unsigned char *ip; /* If not NULL IP address to match */
380 size_t iplen; /* Length of IP address */
381 int poisoned;
382};
383
373int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int quiet); 384int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int quiet);
374 385
375int name_cmp(const char *name, const char *cmp); 386int name_cmp(const char *name, const char *cmp);