remove old unused oneline name field

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Dr. Stephen Henson 2016-03-01 21:04:41 +00:00
parent 83f0e802ab
commit 359aa38fbe
2 changed files with 0 additions and 8 deletions

View File

@ -192,7 +192,6 @@ struct x509_st {
X509_ALGOR sig_alg; X509_ALGOR sig_alg;
ASN1_BIT_STRING signature; ASN1_BIT_STRING signature;
int references; int references;
char *name;
CRYPTO_EX_DATA ex_data; CRYPTO_EX_DATA ex_data;
/* These contain copies of various extension values */ /* These contain copies of various extension values */
long ex_pathlen; long ex_pathlen;

View File

@ -89,7 +89,6 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
switch (operation) { switch (operation) {
case ASN1_OP_NEW_POST: case ASN1_OP_NEW_POST:
ret->name = NULL;
ret->ex_flags = 0; ret->ex_flags = 0;
ret->ex_pathlen = -1; ret->ex_pathlen = -1;
ret->skid = NULL; ret->skid = NULL;
@ -103,11 +102,6 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data);
break; break;
case ASN1_OP_D2I_POST:
OPENSSL_free(ret->name);
ret->name = X509_NAME_oneline(ret->cert_info.subject, NULL, 0);
break;
case ASN1_OP_FREE_POST: case ASN1_OP_FREE_POST:
CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data);
X509_CERT_AUX_free(ret->aux); X509_CERT_AUX_free(ret->aux);
@ -121,7 +115,6 @@ static int x509_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free); sk_IPAddressFamily_pop_free(ret->rfc3779_addr, IPAddressFamily_free);
ASIdentifiers_free(ret->rfc3779_asid); ASIdentifiers_free(ret->rfc3779_asid);
#endif #endif
OPENSSL_free(ret->name);
break; break;
} }