summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-03 23:14:05 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-04-03 23:14:05 +0200
commit881cfb34f60967931ddced1f87152fd045b5bcff (patch)
treed6cdbb78c4d8edab54b253baaa22f2ee9fc8c772
parent33853d63aa9d308fc7b0dee1ddbd312bc99e4bed (diff)
downloadustream-ssl-881cfb34f60967931ddced1f87152fd045b5bcff.tar.gz
openssl: un-inline ustream_ssl_session_free
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--ustream-openssl.c6
-rw-r--r--ustream-openssl.h8
2 files changed, 8 insertions, 6 deletions
diff --git a/ustream-openssl.c b/ustream-openssl.c
index 3abc6e2..8181107 100644
--- a/ustream-openssl.c
+++ b/ustream-openssl.c
@@ -100,6 +100,12 @@ __hidden void __ustream_ssl_context_free(struct ustream_ssl_ctx *ctx)
SSL_CTX_free((void *) ctx);
}
+void __ustream_ssl_session_free(void *ssl)
+{
+ SSL_shutdown(ssl);
+ SSL_free(ssl);
+}
+
static void ustream_ssl_error(struct ustream_ssl *us, int ret)
{
us->error = ret;
diff --git a/ustream-openssl.h b/ustream-openssl.h
index 20c502d..ef786f2 100644
--- a/ustream-openssl.h
+++ b/ustream-openssl.h
@@ -23,17 +23,13 @@
#include <openssl/err.h>
#include <stdbool.h>
+void __ustream_ssl_session_free(void *ssl);
+
static inline void *__ustream_ssl_session_new(void *ctx)
{
return SSL_new(ctx);
}
-static inline void __ustream_ssl_session_free(void *ssl)
-{
- SSL_shutdown(ssl);
- SSL_free(ssl);
-}
-
static inline char *__ustream_ssl_strerror(int error, char *buffer, int len)
{
return ERR_error_string(error, buffer);