diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index e7fdf3d6ab..29b30ad6b2 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -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; } diff --git a/include/crypto/x509.h b/include/crypto/x509.h index 332108d1bb..616265f5b2 100644 --- a/include/crypto/x509.h +++ b/include/crypto/x509.h @@ -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; };