From 881cfb34f60967931ddced1f87152fd045b5bcff Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 3 Apr 2014 23:14:05 +0200 Subject: [PATCH] openssl: un-inline ustream_ssl_session_free Signed-off-by: Felix Fietkau --- ustream-openssl.c | 6 ++++++ ustream-openssl.h | 8 ++------ 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 #include +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); -- 2.11.0