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:
Daniel Pouzzner
2023-01-26 14:56:50 -06:00
parent 4b0e0b88fb
commit 84a5bb67f2

View File

@@ -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);