summaryrefslogtreecommitdiffstats
path: root/ssl_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl_openssl.c')
-rw-r--r--ssl_openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl_openssl.c b/ssl_openssl.c
index f36b319..ebea636 100644
--- a/ssl_openssl.c
+++ b/ssl_openssl.c
@@ -431,6 +431,12 @@ tls_ctx_load_cert_file (struct tls_root_ctx *ctx, const char *cert_file,
}
}
+void
+tls_ctx_free_cert_file (X509 *x509)
+{
+ X509_free(x509);
+}
+
#if ENABLE_INLINE_FILES
static int
use_inline_PrivateKey_file (SSL_CTX *ctx, const char *key_string)