summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/pcy_map.c
diff options
context:
space:
mode:
authorbeck <>2023-04-26 19:11:33 +0000
committerbeck <>2023-04-26 19:11:33 +0000
commit321a20d0a06980e029ce8bcdf37b4df1ff3c31d8 (patch)
tree75b208133b3a7fbeb57237a5639552556d1bc38e /src/lib/libcrypto/x509/pcy_map.c
parent0b0f4ed92e8f424576b536f2fee78a21d2cca3e3 (diff)
downloadopenbsd-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/pcy_map.c')
-rw-r--r--src/lib/libcrypto/x509/pcy_map.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/pcy_map.c b/src/lib/libcrypto/x509/pcy_map.c
index fe21ba14d1..ffbc6f75f0 100644
--- a/src/lib/libcrypto/x509/pcy_map.c
+++ b/src/lib/libcrypto/x509/pcy_map.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pcy_map.c,v 1.3 2022/11/26 16:08:54 tb Exp $ */ 1/* $OpenBSD: pcy_map.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#include "x509_local.h" 65#include "x509_local.h"
64 66
@@ -125,3 +127,5 @@ bad_mapping:
125 sk_POLICY_MAPPING_pop_free(maps, POLICY_MAPPING_free); 127 sk_POLICY_MAPPING_pop_free(maps, POLICY_MAPPING_free);
126 return ret; 128 return ret;
127} 129}
130
131#endif /* LIBRESSL_HAS_POLICY_DAG */