mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
tests/api.c: in test_tls13_apis(), conditionalize expected return value of wolfSSL_CTX_set_max_early_data() on WOLFSSL_ERROR_CODE_OPENSSL (only affects !OPENSSL_EXTRA paths).
This commit is contained in:
12
tests/api.c
12
tests/api.c
@@ -50956,7 +50956,11 @@ static int test_tls13_apis(void)
|
||||
#endif
|
||||
#endif
|
||||
#ifndef OPENSSL_EXTRA
|
||||
#ifdef WOLFSSL_ERROR_CODE_OPENSSL
|
||||
AssertIntEQ(wolfSSL_CTX_set_max_early_data(serverCtx, 32), WOLFSSL_SUCCESS);
|
||||
#else
|
||||
AssertIntEQ(wolfSSL_CTX_set_max_early_data(serverCtx, 32), 0);
|
||||
#endif
|
||||
AssertIntEQ(wolfSSL_CTX_get_max_early_data(serverCtx), 32);
|
||||
#else
|
||||
AssertIntEQ(SSL_CTX_set_max_early_data(serverCtx, 32), 1);
|
||||
@@ -50973,7 +50977,11 @@ static int test_tls13_apis(void)
|
||||
#endif
|
||||
#ifndef NO_WOLFSSL_CLIENT
|
||||
#ifndef OPENSSL_EXTRA
|
||||
#ifdef WOLFSSL_ERROR_CODE_OPENSSL
|
||||
AssertIntEQ(wolfSSL_set_max_early_data(clientSsl, 17), WOLFSSL_SUCCESS);
|
||||
#else
|
||||
AssertIntEQ(wolfSSL_set_max_early_data(clientSsl, 17), 0);
|
||||
#endif
|
||||
AssertIntEQ(wolfSSL_get_max_early_data(clientSsl), 17);
|
||||
#else
|
||||
AssertIntEQ(SSL_set_max_early_data(clientSsl, 17), WOLFSSL_SUCCESS);
|
||||
@@ -50991,7 +50999,11 @@ static int test_tls13_apis(void)
|
||||
#endif
|
||||
#endif
|
||||
#ifndef OPENSSL_EXTRA
|
||||
#ifdef WOLFSSL_ERROR_CODE_OPENSSL
|
||||
AssertIntEQ(wolfSSL_set_max_early_data(serverSsl, 16), WOLFSSL_SUCCESS);
|
||||
#else
|
||||
AssertIntEQ(wolfSSL_set_max_early_data(serverSsl, 16), 0);
|
||||
#endif
|
||||
AssertIntEQ(wolfSSL_get_max_early_data(serverSsl), 16);
|
||||
#else
|
||||
AssertIntEQ(SSL_set_max_early_data(serverSsl, 16), 1);
|
||||
|
Reference in New Issue
Block a user