Remove two unused union members from struct x509_object_st.

CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25826)
This commit is contained in:
Gábor Tóthvári 2024-10-29 20:28:04 +01:00 committed by Tomas Mraz
parent a590a7e3bc
commit 8f4cd8e305
2 changed files with 2 additions and 4 deletions

View File

@ -331,7 +331,7 @@ static int ossl_x509_store_ctx_get_by_subject(const X509_STORE_CTX *ctx,
return 0;
stmp.type = X509_LU_NONE;
stmp.data.ptr = NULL;
stmp.data.x509 = NULL;
if (!x509_store_read_lock(store))
return 0;
@ -371,7 +371,7 @@ static int ossl_x509_store_ctx_get_by_subject(const X509_STORE_CTX *ctx,
return -1;
ret->type = tmp->type;
ret->data.ptr = tmp->data.ptr;
ret->data = tmp->data;
return 1;
}

View File

@ -303,10 +303,8 @@ struct x509_object_st {
/* one of the above types */
X509_LOOKUP_TYPE type;
union {
char *ptr;
X509 *x509;
X509_CRL *crl;
EVP_PKEY *pkey;
} data;
};