summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_ncons.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ncons.c')
-rw-r--r--src/lib/libcrypto/x509/x509_ncons.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_ncons.c b/src/lib/libcrypto/x509/x509_ncons.c
index 613527005a..a5d055ae9f 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.5 2021/11/01 20:53:08 tb Exp $ */ 1/* $OpenBSD: x509_ncons.c,v 1.6 2022/11/14 17:48:50 beck 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 */
@@ -165,24 +165,28 @@ GENERAL_SUBTREE_new(void)
165{ 165{
166 return (GENERAL_SUBTREE*)ASN1_item_new(&GENERAL_SUBTREE_it); 166 return (GENERAL_SUBTREE*)ASN1_item_new(&GENERAL_SUBTREE_it);
167} 167}
168LCRYPTO_ALIAS(GENERAL_SUBTREE_new)
168 169
169void 170void
170GENERAL_SUBTREE_free(GENERAL_SUBTREE *a) 171GENERAL_SUBTREE_free(GENERAL_SUBTREE *a)
171{ 172{
172 ASN1_item_free((ASN1_VALUE *)a, &GENERAL_SUBTREE_it); 173 ASN1_item_free((ASN1_VALUE *)a, &GENERAL_SUBTREE_it);
173} 174}
175LCRYPTO_ALIAS(GENERAL_SUBTREE_free)
174 176
175NAME_CONSTRAINTS * 177NAME_CONSTRAINTS *
176NAME_CONSTRAINTS_new(void) 178NAME_CONSTRAINTS_new(void)
177{ 179{
178 return (NAME_CONSTRAINTS*)ASN1_item_new(&NAME_CONSTRAINTS_it); 180 return (NAME_CONSTRAINTS*)ASN1_item_new(&NAME_CONSTRAINTS_it);
179} 181}
182LCRYPTO_ALIAS(NAME_CONSTRAINTS_new)
180 183
181void 184void
182NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a) 185NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a)
183{ 186{
184 ASN1_item_free((ASN1_VALUE *)a, &NAME_CONSTRAINTS_it); 187 ASN1_item_free((ASN1_VALUE *)a, &NAME_CONSTRAINTS_it);
185} 188}
189LCRYPTO_ALIAS(NAME_CONSTRAINTS_free)
186 190
187static void * 191static void *
188v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, 192v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx,
@@ -349,6 +353,7 @@ NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc)
349 } 353 }
350 return X509_V_OK; 354 return X509_V_OK;
351} 355}
356LCRYPTO_ALIAS(NAME_CONSTRAINTS_check)
352static int 357static int
353nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) 358nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc)
354{ 359{