]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove two unused union members from struct x509_object_st.
authorGábor Tóthvári <tigbrcode@protonmail.com>
Tue, 29 Oct 2024 19:28:04 +0000 (20:28 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 4 Nov 2024 10:52:17 +0000 (11:52 +0100)
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)

crypto/x509/x509_lu.c
include/crypto/x509.h

index e7fdf3d6ab66747bc7c94a83df67aa6c93ab35e3..29b30ad6b2c3ed7db89dfdf0abaeeef85a2dac3b 100644 (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;
 }
 
index 332108d1bb588d4dbafb14f7f367e4c00b094f1f..616265f5b27f79fb22756f6e663950dc59f56c2e 100644 (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;
 };