diff options
author | beck <> | 2023-04-26 19:11:33 +0000 |
---|---|---|
committer | beck <> | 2023-04-26 19:11:33 +0000 |
commit | d2576ff178ab71d730ed11f6d244e0035b9203c2 (patch) | |
tree | 75b208133b3a7fbeb57237a5639552556d1bc38e /src/lib/libcrypto/x509/pcy_lib.c | |
parent | 044e73e94f288a201e6ef15bb65075250510d821 (diff) | |
download | openbsd-d2576ff178ab71d730ed11f6d244e0035b9203c2.tar.gz openbsd-d2576ff178ab71d730ed11f6d244e0035b9203c2.tar.bz2 openbsd-d2576ff178ab71d730ed11f6d244e0035b9203c2.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/pcy_lib.c')
-rw-r--r-- | src/lib/libcrypto/x509/pcy_lib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/pcy_lib.c b/src/lib/libcrypto/x509/pcy_lib.c index e4d3fd9fa8..0c8978bd70 100644 --- a/src/lib/libcrypto/x509/pcy_lib.c +++ b/src/lib/libcrypto/x509/pcy_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pcy_lib.c,v 1.3 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: pcy_lib.c,v 1.4 2023/04/26 19:11:33 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 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -59,6 +59,8 @@ | |||
59 | #include <openssl/x509.h> | 59 | #include <openssl/x509.h> |
60 | #include <openssl/x509v3.h> | 60 | #include <openssl/x509v3.h> |
61 | 61 | ||
62 | #ifndef LIBRESSL_HAS_POLICY_DAG | ||
63 | |||
62 | #include "pcy_int.h" | 64 | #include "pcy_int.h" |
63 | 65 | ||
64 | /* accessor functions */ | 66 | /* accessor functions */ |
@@ -164,3 +166,5 @@ X509_policy_node_get0_parent(const X509_POLICY_NODE *node) | |||
164 | return node->parent; | 166 | return node->parent; |
165 | } | 167 | } |
166 | LCRYPTO_ALIAS(X509_policy_node_get0_parent); | 168 | LCRYPTO_ALIAS(X509_policy_node_get0_parent); |
169 | |||
170 | #endif /* LIBRESSL_HAS_POLICY_DAG */ | ||