From 4fd25eed849a1e1cc5f0497cf86579813203b406 Mon Sep 17 00:00:00 2001 From: beck <> Date: Sun, 10 Aug 2025 06:36:45 +0000 Subject: Clean up and move define to correct place. ok tb@ --- src/lib/libcrypto/x509/x509.h | 3 ++- src/lib/libcrypto/x509/x509_policy.c | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 729a06d0ed..4148a6398e 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.123 2025/07/16 15:59:26 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.124 2025/08/10 06:36:45 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -995,6 +995,7 @@ void ERR_load_X509_strings(void); #define X509_R_ERR_ASN1_LIB 102 #define X509_R_INVALID_DIRECTORY 113 #define X509_R_INVALID_FIELD_NAME 119 +#define X509_R_INVALID_POLICY_EXTENSION 201 #define X509_R_INVALID_TRUST 123 #define X509_R_INVALID_VERSION 137 #define X509_R_KEY_TYPE_MISMATCH 115 diff --git a/src/lib/libcrypto/x509/x509_policy.c b/src/lib/libcrypto/x509/x509_policy.c index 8267e8dc49..2df965aad1 100644 --- a/src/lib/libcrypto/x509/x509_policy.c +++ b/src/lib/libcrypto/x509/x509_policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_policy.c,v 1.32 2025/05/10 05:54:39 tb Exp $ */ +/* $OpenBSD: x509_policy.c,v 1.33 2025/08/10 06:36:45 beck Exp $ */ /* * Copyright (c) 2022, Google Inc. * @@ -27,9 +27,6 @@ #include "x509_internal.h" #include "x509_local.h" -/* XXX move to proper place */ -#define X509_R_INVALID_POLICY_EXTENSION 201 - /* * This file computes the X.509 policy tree, as described in RFC 5280, * section 6.1 and RFC 9618. It differs in that: -- cgit v1.2.3-55-g6feb