Fix unit test failure when building OPENSSL_EXTRA without HAVE_EXT_CACHE.
This commit is contained in:
parent
2bb8eeae85
commit
28f39f6b3d
@ -42305,11 +42305,13 @@ static int test_wolfSSL_SESSION(void)
|
||||
WOLFSSL_SESSION* sess;
|
||||
WOLFSSL_SESSION* sess_copy;
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#ifdef HAVE_EXT_CACHE
|
||||
unsigned char* sessDer = NULL;
|
||||
unsigned char* ptr = NULL;
|
||||
int sz;
|
||||
#endif
|
||||
const unsigned char context[] = "user app context";
|
||||
unsigned int contextSz = (unsigned int)sizeof(context);
|
||||
int sz;
|
||||
#endif
|
||||
int ret, err;
|
||||
SOCKET_T sockfd;
|
||||
@ -42478,7 +42480,7 @@ static int test_wolfSSL_SESSION(void)
|
||||
sess_copy = NULL;
|
||||
#endif
|
||||
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#if defined(OPENSSL_EXTRA) && defined(HAVE_EXT_CACHE)
|
||||
/* get session from DER and update the timeout */
|
||||
AssertIntEQ(wolfSSL_i2d_SSL_SESSION(NULL, &sessDer), BAD_FUNC_ARG);
|
||||
AssertIntGT((sz = wolfSSL_i2d_SSL_SESSION(sess, &sessDer)), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user