openssl: un-inline ustream_ssl_session_free
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Apr 2014 21:14:05 +0000 (23:14 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Apr 2014 21:14:05 +0000 (23:14 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-openssl.c
ustream-openssl.h

index 3abc6e20f0d4abca2d8dabb39738c4016f5432eb..818110730fa8a5f108eee6caa1562c4e21b8de1d 100644 (file)
@@ -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;
index 20c502d3fb35f2cb2f8f96a961404f9cba9372f9..ef786f2810dddd2f194ac0585f99758b91fd3c02 100644 (file)
 #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);