From: Felix Fietkau Date: Thu, 3 Apr 2014 21:14:05 +0000 (+0200) Subject: openssl: un-inline ustream_ssl_session_free X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=881cfb34f60967931ddced1f87152fd045b5bcff;p=project%2Fustream-ssl.git openssl: un-inline ustream_ssl_session_free Signed-off-by: Felix Fietkau --- 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);