diff options
author | tb <> | 2025-02-20 20:30:12 +0000 |
---|---|---|
committer | tb <> | 2025-02-20 20:30:12 +0000 |
commit | 622a7eaa6740f9747a004a390c6ae362ab4dd335 (patch) | |
tree | 196d8fb5705e0686ffc5a8c7b4c981e6cd0c3cfd | |
parent | 4e12830c92f6c50364a4883d48e26e45714d85e2 (diff) | |
download | openbsd-622a7eaa6740f9747a004a390c6ae362ab4dd335.tar.gz openbsd-622a7eaa6740f9747a004a390c6ae362ab4dd335.tar.bz2 openbsd-622a7eaa6740f9747a004a390c6ae362ab4dd335.zip |
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).
-rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 3 | ||||
-rw-r--r-- | 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 @@ | |||
1 | /* $OpenBSD: x_x509.c,v 1.39 2024/07/08 14:48:49 beck Exp $ */ | 1 | /* $OpenBSD: x_x509.c,v 1.40 2025/02/20 20:30:12 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -182,7 +182,6 @@ x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) | |||
182 | switch (operation) { | 182 | switch (operation) { |
183 | 183 | ||
184 | case ASN1_OP_NEW_POST: | 184 | case ASN1_OP_NEW_POST: |
185 | ret->valid = 0; | ||
186 | ret->name = NULL; | 185 | ret->name = NULL; |
187 | ret->ex_flags = 0; | 186 | ret->ex_flags = 0; |
188 | ret->ex_pathlen = -1; | 187 | 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 @@ | |||
1 | /* $OpenBSD: x509_local.h,v 1.34 2025/01/26 20:01:58 tb Exp $ */ | 1 | /* $OpenBSD: x509_local.h,v 1.35 2025/02/20 20:30:12 tb 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 2013. | 3 | * project 2013. |
4 | */ | 4 | */ |
@@ -184,7 +184,6 @@ struct x509_st { | |||
184 | X509_CINF *cert_info; | 184 | X509_CINF *cert_info; |
185 | X509_ALGOR *sig_alg; | 185 | X509_ALGOR *sig_alg; |
186 | ASN1_BIT_STRING *signature; | 186 | ASN1_BIT_STRING *signature; |
187 | int valid; | ||
188 | int references; | 187 | int references; |
189 | char *name; | 188 | char *name; |
190 | CRYPTO_EX_DATA ex_data; | 189 | CRYPTO_EX_DATA ex_data; |