Skip to content

Commit 804cf1c

Browse files
committed
re-add function to new file
1 parent b184cdf commit 804cf1c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/ssl_sess.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ WOLFSSL_SESSION* wolfSSL_get1_session(WOLFSSL* ssl)
283283
return sess;
284284
}
285285

286+
/* session is a private struct, return if it is setup or not */
287+
WOLFSSL_API int wolfSSL_SessionIsSetup(WOLFSSL_SESSION* session)
288+
{
289+
if (session != NULL)
290+
return session->isSetup;
291+
return 0;
292+
}
286293

287294
/*
288295
* Sets the session object to use when establishing a TLS/SSL session using

0 commit comments

Comments
 (0)