From 622a7eaa6740f9747a004a390c6ae362ab4dd335 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 20 Feb 2025 20:30:12 +0000 Subject: Remove unused valid member of x509_st internal_verify() (now x509_vfy_internal_verify()) used to cache the validity of the signature of a cert in this field. This is no longer the case since x509_vfy.c 1.57 (2017). --- src/lib/libcrypto/asn1/x_x509.c | 3 +-- src/lib/libcrypto/x509/x509_local.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index 4ea45fe29b..15af015af1 100644 --- a/src/lib/libcrypto/asn1/x_x509.c +++ b/src/lib/libcrypto/asn1/x_x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x_x509.c,v 1.39 2024/07/08 14:48:49 beck Exp $ */ +/* $OpenBSD: x_x509.c,v 1.40 2025/02/20 20:30:12 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -182,7 +182,6 @@ x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) switch (operation) { case ASN1_OP_NEW_POST: - ret->valid = 0; ret->name = NULL; ret->ex_flags = 0; ret->ex_pathlen = -1; diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h index 5240db1489..47fc783db4 100644 --- a/src/lib/libcrypto/x509/x509_local.h +++ b/src/lib/libcrypto/x509/x509_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_local.h,v 1.34 2025/01/26 20:01:58 tb Exp $ */ +/* $OpenBSD: x509_local.h,v 1.35 2025/02/20 20:30:12 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2013. */ @@ -184,7 +184,6 @@ struct x509_st { X509_CINF *cert_info; X509_ALGOR *sig_alg; ASN1_BIT_STRING *signature; - int valid; int references; char *name; CRYPTO_EX_DATA ex_data; -- cgit v1.2.3-55-g6feb