File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47152,6 +47152,7 @@ static int test_wolfSSL_SESSION(void)
4715247152
4715347153 ExpectPtrNE((sess = wolfSSL_get1_session(ssl)), NULL); /* ref count 1 */
4715447154 ExpectPtrNE((sess_copy = wolfSSL_get1_session(ssl)), NULL); /* ref count 2 */
47155+ ExpectIntEQ(wolfSSLSessionIsSetup(sess), 1);
4715547156#ifdef HAVE_EXT_CACHE
4715647157 ExpectPtrEq(sess, sess_copy); /* they should be the same pointer but without
4715747158 * HAVE_EXT_CACHE we get new objects each time */
Original file line number Diff line number Diff line change @@ -1691,6 +1691,7 @@ WOLFSSL_API const char* wolfSSL_SESSION_CIPHER_get_name(const WOLFSSL_SESSION*
16911691WOLFSSL_API const char * wolfSSL_get_cipher (WOLFSSL * ssl );
16921692WOLFSSL_API void wolfSSL_sk_CIPHER_free (WOLF_STACK_OF (WOLFSSL_CIPHER )* sk );
16931693WOLFSSL_API WOLFSSL_SESSION * wolfSSL_get1_session (WOLFSSL * ssl );
1694+ WOLFSSL_API int wolfSSLSessionIsSetup (WOLFSSL_SESSION * session );
16941695
16951696WOLFSSL_API WOLFSSL_X509 * wolfSSL_X509_new (void );
16961697WOLFSSL_API WOLFSSL_X509 * wolfSSL_X509_new_ex (void * heap );
You can’t perform that action at this time.
0 commit comments