diff options
author | Joe Orton <jorton@apache.org> | 2020-05-04 11:00:29 +0200 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2020-05-04 11:00:29 +0200 |
commit | 37de2054b37f531f090010d554e6ab373b7521b0 (patch) | |
tree | 0522b181cb2b8ed49c1a59b8157510c2b09ebfe0 | |
parent | Prior to r1877345 mc->pPool was the process pool (s->process->pool). (diff) | |
download | apache2-37de2054b37f531f090010d554e6ab373b7521b0.tar.xz apache2-37de2054b37f531f090010d554e6ab373b7521b0.zip |
* modules/ssl/ssl_util.c (ssl_asn1_table_set): Remove unused function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877348 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/ssl/ssl_private.h | 2 | ||||
-rw-r--r-- | modules/ssl/ssl_util.c | 18 |
2 files changed, 0 insertions, 20 deletions
diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h index 1798cc5f48..779129e24b 100644 --- a/modules/ssl/ssl_private.h +++ b/modules/ssl/ssl_private.h @@ -1046,8 +1046,6 @@ ssl_asn1_t *ssl_asn1_table_set(apr_hash_t *table, const char *key, EVP_PKEY *pkey); /* Retrieve the ssl_asn1_t structure with given key from the hash. */ ssl_asn1_t *ssl_asn1_table_get(apr_hash_t *table, const char *key); -/* Remove and free the ssl_asn1_t structure with given key. */ -void ssl_asn1_table_unset(apr_hash_t *table, const char *key); /** Mutex Support */ int ssl_mutex_init(server_rec *, apr_pool_t *); diff --git a/modules/ssl/ssl_util.c b/modules/ssl/ssl_util.c index 83f590bbf9..7de6f57d44 100644 --- a/modules/ssl/ssl_util.c +++ b/modules/ssl/ssl_util.c @@ -231,24 +231,6 @@ ssl_asn1_t *ssl_asn1_table_get(apr_hash_t *table, return (ssl_asn1_t *)apr_hash_get(table, key, APR_HASH_KEY_STRING); } -void ssl_asn1_table_unset(apr_hash_t *table, - const char *key) -{ - apr_ssize_t klen = strlen(key); - ssl_asn1_t *asn1 = apr_hash_get(table, key, klen); - - if (!asn1) { - return; - } - - if (asn1->cpData) { - free(asn1->cpData); - } - free(asn1); - - apr_hash_set(table, key, klen, NULL); -} - #if APR_HAS_THREADS && MODSSL_USE_OPENSSL_PRE_1_1_API /* |