diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-03-22 15:26:36 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-03-22 19:42:19 +0000 |
commit | d577a69a0f3a56146f644fda010e7efb2c0e693d (patch) | |
tree | 022b5bd9f09f8713150c0a1c1e680c8bf5845006 /crypto/asn1/x_info.c | |
parent | 38186bfd4e5be7f212d8e460420e081e0ad852e7 (diff) | |
download | openssl-new-d577a69a0f3a56146f644fda010e7efb2c0e693d.tar.gz |
remove unused references field
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/asn1/x_info.c')
-rw-r--r-- | crypto/asn1/x_info.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/crypto/asn1/x_info.c b/crypto/asn1/x_info.c index 4b3b7de870..b49c787792 100644 --- a/crypto/asn1/x_info.c +++ b/crypto/asn1/x_info.c @@ -71,34 +71,17 @@ X509_INFO *X509_INFO_new(void) return NULL; } - ret->references = 1; - - ret->lock = CRYPTO_THREAD_lock_new(); - if (ret->lock == NULL) { - X509_INFO_free(ret); - return NULL; - } - return ret; } void X509_INFO_free(X509_INFO *x) { - int i; - if (x == NULL) return; - CRYPTO_atomic_add(&x->references, -1, &i, x->lock); - REF_PRINT_COUNT("X509_INFO", x); - if (i > 0) - return; - REF_ASSERT_ISNT(i < 0); - X509_free(x->x509); X509_CRL_free(x->crl); X509_PKEY_free(x->x_pkey); OPENSSL_free(x->enc_data); - CRYPTO_THREAD_lock_free(x->lock); OPENSSL_free(x); } |