diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/x_x509.c')
-rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index df66153c45..5a769abdff 100644 --- a/src/lib/libcrypto/asn1/x_x509.c +++ b/src/lib/libcrypto/asn1/x_x509.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_x509.c,v 1.33 2023/04/24 08:09:29 job Exp $ */ | 1 | /* $OpenBSD: x_x509.c,v 1.34 2023/04/26 19:11:32 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -169,7 +169,9 @@ X509_CINF_free(X509_CINF *a) | |||
169 | } | 169 | } |
170 | /* X509 top level structure needs a bit of customisation */ | 170 | /* X509 top level structure needs a bit of customisation */ |
171 | 171 | ||
172 | #ifndef LIBRESSL_HAS_POLICY_DAG | ||
172 | extern void policy_cache_free(X509_POLICY_CACHE *cache); | 173 | extern void policy_cache_free(X509_POLICY_CACHE *cache); |
174 | #endif | ||
173 | 175 | ||
174 | static int | 176 | static int |
175 | x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) | 177 | x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) |
@@ -205,7 +207,9 @@ x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) | |||
205 | ASN1_OCTET_STRING_free(ret->skid); | 207 | ASN1_OCTET_STRING_free(ret->skid); |
206 | AUTHORITY_KEYID_free(ret->akid); | 208 | AUTHORITY_KEYID_free(ret->akid); |
207 | CRL_DIST_POINTS_free(ret->crldp); | 209 | CRL_DIST_POINTS_free(ret->crldp); |
210 | #ifndef LIBRESSL_HAS_POLICY_DAG | ||
208 | policy_cache_free(ret->policy_cache); | 211 | policy_cache_free(ret->policy_cache); |
212 | #endif | ||
209 | GENERAL_NAMES_free(ret->altname); | 213 | GENERAL_NAMES_free(ret->altname); |
210 | NAME_CONSTRAINTS_free(ret->nc); | 214 | NAME_CONSTRAINTS_free(ret->nc); |
211 | #ifndef OPENSSL_NO_RFC3779 | 215 | #ifndef OPENSSL_NO_RFC3779 |