3131#include <tests/utils.h>
3232#include <tests/api/test_tls.h>
3333#include <wolfssl/internal.h>
34- #include <wolfssl/openssl/ ssl.h>
34+ #include <wolfssl/ssl.h>
3535
3636
3737int test_utils_memio_move_message (void )
@@ -1107,8 +1107,8 @@ int test_tls12_corrupted_finished(void)
11071107int test_wolfSSL_alert_type_string (void )
11081108{
11091109 EXPECT_DECLS ;
1110- #ifndef NO_TLS
1111- /* wolfSSL_alert_type_string returns short code for alert level */
1110+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
1111+ defined( OPENSSL_EXTRA_X509_SMALL ))
11121112 ExpectStrEQ (wolfSSL_alert_type_string (alert_warning ), "W" );
11131113 ExpectStrEQ (wolfSSL_alert_type_string (alert_fatal ), "F" );
11141114 ExpectStrEQ (wolfSSL_alert_type_string (0 ), "U" );
@@ -1181,8 +1181,8 @@ int test_tls12_peerauth_failsafe(void)
11811181int test_wolfSSL_alert_desc_string (void )
11821182{
11831183 EXPECT_DECLS ;
1184- #ifndef NO_TLS
1185- /* wolfSSL_alert_desc_string returns short 2-letter code */
1184+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
1185+ defined( OPENSSL_EXTRA_X509_SMALL ))
11861186 ExpectStrEQ (wolfSSL_alert_desc_string (close_notify ), "CN" );
11871187 ExpectStrEQ (wolfSSL_alert_desc_string (unexpected_message ), "UM" );
11881188 ExpectStrEQ (wolfSSL_alert_desc_string (bad_record_mac ), "BM" );
@@ -1207,7 +1207,7 @@ int test_wolfSSL_alert_desc_string(void)
12071207 ExpectStrEQ (wolfSSL_alert_desc_string (user_canceled ), "US" );
12081208 ExpectStrEQ (wolfSSL_alert_desc_string (no_renegotiation ), "NR" );
12091209 ExpectStrEQ (wolfSSL_alert_desc_string (missing_extension ), "ME" );
1210- ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "UE " );
1210+ ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "XE " );
12111211 ExpectStrEQ (wolfSSL_alert_desc_string (unrecognized_name ), "UN" );
12121212 ExpectStrEQ (wolfSSL_alert_desc_string (bad_certificate_status_response ), "BR" );
12131213 ExpectStrEQ (wolfSSL_alert_desc_string (unknown_psk_identity ), "UP" );
0 commit comments