From 66965759d50e58ac1c4a8bf2329ab04e8604210b Mon Sep 17 00:00:00 2001 From: Nickolas Lapp Date: Thu, 12 Nov 2015 16:52:56 -0700 Subject: [PATCH] Implement missing openssl API --- src/ssl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 85407b815..1473748b0 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -9968,6 +9968,7 @@ int wolfSSL_session_reused(WOLFSSL* ssl) #ifdef OPENSSL_EXTRA void wolfSSL_SESSION_free(WOLFSSL_SESSION* session) { + /* No need to free since cache is static */ (void)session; } #endif @@ -10410,10 +10411,10 @@ char* wolfSSL_CIPHER_description(WOLFSSL_CIPHER* cipher, char* in, int len) } -WOLFSSL_SESSION* wolfSSL_get1_session(WOLFSSL* ssl) /* what's ref count */ +WOLFSSL_SESSION* wolfSSL_get1_session(WOLFSSL* ssl) { - (void)ssl; - return 0; + /* sessions are stored statically, no need for reference count */ + return wolfSSL_get_session(ssl); }