diff --git a/tests/api.c b/tests/api.c index d88fe04fd..441d89673 100644 --- a/tests/api.c +++ b/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);