Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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;
#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);