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/x509/x509_policy.c | |
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/x509/x509_policy.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_policy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/x509/x509_policy.c b/src/lib/libcrypto/x509/x509_policy.c index c9618dbf23..d49d86856c 100644 --- a/src/lib/libcrypto/x509/x509_policy.c +++ b/src/lib/libcrypto/x509/x509_policy.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include "x509_internal.h" | 25 | #include "x509_internal.h" |
26 | #include "x509_local.h" | 26 | #include "x509_local.h" |
27 | 27 | ||
28 | #ifdef LIBRESSL_HAS_POLICY_DAG | ||
29 | |||
28 | /* XXX move to proper place */ | 30 | /* XXX move to proper place */ |
29 | #define X509_R_INVALID_POLICY_EXTENSION 201 | 31 | #define X509_R_INVALID_POLICY_EXTENSION 201 |
30 | 32 | ||
@@ -856,3 +858,5 @@ err: | |||
856 | sk_X509_POLICY_LEVEL_pop_free(levels, x509_policy_level_free); | 858 | sk_X509_POLICY_LEVEL_pop_free(levels, x509_policy_level_free); |
857 | return ret; | 859 | return ret; |
858 | } | 860 | } |
861 | |||
862 | #endif /* LIBRESSL_HAS_POLICY_DAG */ | ||