mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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:
parent
a590a7e3bc
commit
8f4cd8e305
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user