diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ncons.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_ncons.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_ncons.c b/src/lib/libcrypto/x509/x509_ncons.c index f8c63886a4..148a66e887 100644 --- a/src/lib/libcrypto/x509/x509_ncons.c +++ b/src/lib/libcrypto/x509/x509_ncons.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_ncons.c,v 1.10 2024/07/08 14:47:44 beck Exp $ */ | 1 | /* $OpenBSD: x509_ncons.c,v 1.11 2024/07/13 15:08:58 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -81,7 +81,7 @@ static int nc_dns(ASN1_IA5STRING *sub, ASN1_IA5STRING *dns); | |||
81 | static int nc_email(ASN1_IA5STRING *sub, ASN1_IA5STRING *eml); | 81 | static int nc_email(ASN1_IA5STRING *sub, ASN1_IA5STRING *eml); |
82 | static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base); | 82 | static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base); |
83 | 83 | ||
84 | const X509V3_EXT_METHOD v3_name_constraints = { | 84 | static const X509V3_EXT_METHOD x509v3_ext_name_constraints = { |
85 | .ext_nid = NID_name_constraints, | 85 | .ext_nid = NID_name_constraints, |
86 | .ext_flags = 0, | 86 | .ext_flags = 0, |
87 | .it = &NAME_CONSTRAINTS_it, | 87 | .it = &NAME_CONSTRAINTS_it, |
@@ -98,6 +98,12 @@ const X509V3_EXT_METHOD v3_name_constraints = { | |||
98 | .usr_data = NULL, | 98 | .usr_data = NULL, |
99 | }; | 99 | }; |
100 | 100 | ||
101 | const X509V3_EXT_METHOD * | ||
102 | x509v3_ext_method_name_constraints(void) | ||
103 | { | ||
104 | return &x509v3_ext_name_constraints; | ||
105 | } | ||
106 | |||
101 | static const ASN1_TEMPLATE GENERAL_SUBTREE_seq_tt[] = { | 107 | static const ASN1_TEMPLATE GENERAL_SUBTREE_seq_tt[] = { |
102 | { | 108 | { |
103 | .flags = 0, | 109 | .flags = 0, |