diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ncons.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_ncons.c | 7 |
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 | } |
168 | LCRYPTO_ALIAS(GENERAL_SUBTREE_new) | ||
168 | 169 | ||
169 | void | 170 | void |
170 | GENERAL_SUBTREE_free(GENERAL_SUBTREE *a) | 171 | GENERAL_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 | } |
175 | LCRYPTO_ALIAS(GENERAL_SUBTREE_free) | ||
174 | 176 | ||
175 | NAME_CONSTRAINTS * | 177 | NAME_CONSTRAINTS * |
176 | NAME_CONSTRAINTS_new(void) | 178 | NAME_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 | } |
182 | LCRYPTO_ALIAS(NAME_CONSTRAINTS_new) | ||
180 | 183 | ||
181 | void | 184 | void |
182 | NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *a) | 185 | NAME_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 | } |
189 | LCRYPTO_ALIAS(NAME_CONSTRAINTS_free) | ||
186 | 190 | ||
187 | static void * | 191 | static void * |
188 | v2i_NAME_CONSTRAINTS(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | 192 | v2i_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 | } |
356 | LCRYPTO_ALIAS(NAME_CONSTRAINTS_check) | ||
352 | static int | 357 | static int |
353 | nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) | 358 | nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) |
354 | { | 359 | { |