diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-06-21 19:42:04 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-06-22 13:52:24 +0100 |
commit | 389ebcecae2575188a4ff9566389ce694352be43 (patch) | |
tree | e920d470e1bbcae3603b3686d27e7c961997a1cf /ssl/ssl_cert.c | |
parent | c34b0f9930563f905412a00b6d8a7280c83eb811 (diff) |
Remove SESS_CERT entirely.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 3bb2576f8a..5e9b8ffe7a 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -519,46 +519,6 @@ void ssl_cert_set_cert_cb(CERT *c, int (*cb) (SSL *ssl, void *arg), void *arg) c->cert_cb_arg = arg; } -SESS_CERT *ssl_sess_cert_new(void) -{ - SESS_CERT *ret; - - ret = OPENSSL_malloc(sizeof(*ret)); - if (ret == NULL) { - SSLerr(SSL_F_SSL_SESS_CERT_NEW, ERR_R_MALLOC_FAILURE); - return NULL; - } - - memset(ret, 0, sizeof(*ret)); - ret->references = 1; - - return ret; -} - -void ssl_sess_cert_free(SESS_CERT *sc) -{ - int i; - - if (sc == NULL) - return; - - i = CRYPTO_add(&sc->references, -1, CRYPTO_LOCK_SSL_SESS_CERT); -#ifdef REF_PRINT - REF_PRINT("SESS_CERT", sc); -#endif - if (i > 0) - return; -#ifdef REF_CHECK - if (i < 0) { - fprintf(stderr, "ssl_sess_cert_free, bad reference count\n"); - abort(); /* ok */ - } -#endif - - /* i == 0 */ - OPENSSL_free(sc); -} - int ssl_verify_cert_chain(SSL *s, STACK_OF(X509) *sk) { X509 *x; |