diff options
| author | beck <> | 2023-04-26 19:11:33 +0000 |
|---|---|---|
| committer | beck <> | 2023-04-26 19:11:33 +0000 |
| commit | 321a20d0a06980e029ce8bcdf37b4df1ff3c31d8 (patch) | |
| tree | 75b208133b3a7fbeb57237a5639552556d1bc38e /src/lib/libcrypto/asn1 | |
| parent | 0b0f4ed92e8f424576b536f2fee78a21d2cca3e3 (diff) | |
| download | openbsd-321a20d0a06980e029ce8bcdf37b4df1ff3c31d8.tar.gz openbsd-321a20d0a06980e029ce8bcdf37b4df1ff3c31d8.tar.bz2 openbsd-321a20d0a06980e029ce8bcdf37b4df1ff3c31d8.zip | |
Make the new policy code in x509_policy.c to be selectable at compile time.
The old policy codes remains the default, with the new policy code
selectable by defining LIBRESSL_HAS_POLICY_DAG.
ok tb@ jsing@
Diffstat (limited to 'src/lib/libcrypto/asn1')
| -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 |
