summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_lcl.h
diff options
context:
space:
mode:
authortb <>2021-11-05 07:25:36 +0000
committertb <>2021-11-05 07:25:36 +0000
commit0ee10503a7c758c3d936f379ef25c18a059ebb1f (patch)
treeed0531ed1b01d4d8718f492519de90fd25f61abb /src/lib/libcrypto/x509/x509_lcl.h
parent87decea9a33c04cfad36679efd6678bbc21363cd (diff)
downloadopenbsd-0ee10503a7c758c3d936f379ef25c18a059ebb1f.tar.gz
openbsd-0ee10503a7c758c3d936f379ef25c18a059ebb1f.tar.bz2
openbsd-0ee10503a7c758c3d936f379ef25c18a059ebb1f.zip
Garbage collect xobj->data.{ptr,pkey}
Both these are essentially unused. Remove the last use of data.ptr by initializing and copying the X509_OBJECT using memset() and struct assignment in X509_STORE_CTX_get_subject_by_name() and add a missing error check for X509_OBJECT_up_ref_count() while there. ok beck
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lcl.h')
-rw-r--r--src/lib/libcrypto/x509/x509_lcl.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_lcl.h b/src/lib/libcrypto/x509/x509_lcl.h
index 804fff48fc..e1894e5523 100644
--- a/src/lib/libcrypto/x509/x509_lcl.h
+++ b/src/lib/libcrypto/x509/x509_lcl.h
@@ -246,10 +246,8 @@ struct x509_object_st {
246 /* one of the above types */ 246 /* one of the above types */
247 int type; 247 int type;
248 union { 248 union {
249 char *ptr;
250 X509 *x509; 249 X509 *x509;
251 X509_CRL *crl; 250 X509_CRL *crl;
252 EVP_PKEY *pkey;
253 } data; 251 } data;
254} /* X509_OBJECT */; 252} /* X509_OBJECT */;
255 253