From d21c43183f4ccbe8d53b2a3853c204d9216e42fe Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 31 Oct 2021 16:17:14 +0000 Subject: [PATCH] Provide the X509_LOOKUP_TYPE enum. Remove the now unused X509_LU_{RETRY,FAIL,PKEY}. ok beck inoguchi jsing --- lib/libcrypto/x509/x509_vfy.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/x509/x509_vfy.h b/lib/libcrypto/x509/x509_vfy.h index 097e1f69f4b..ee6b9a614ba 100644 --- a/lib/libcrypto/x509/x509_vfy.h +++ b/lib/libcrypto/x509/x509_vfy.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_vfy.h,v 1.39 2021/10/31 15:55:45 tb Exp $ */ +/* $OpenBSD: x509_vfy.h,v 1.40 2021/10/31 16:17:14 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -102,11 +102,11 @@ typedef struct x509_file_st * certificate chain. */ -#define X509_LU_RETRY -1 -#define X509_LU_FAIL 0 -#define X509_LU_X509 1 -#define X509_LU_CRL 2 -#define X509_LU_PKEY 3 +typedef enum { + X509_LU_NONE, + X509_LU_X509, + X509_LU_CRL, +} X509_LOOKUP_TYPE; #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) typedef struct x509_object_st { -- 2.20.1