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 )
@@ -1063,8 +1063,8 @@ int test_tls12_corrupted_finished(void)
10631063int test_wolfSSL_alert_type_string (void )
10641064{
10651065 EXPECT_DECLS ;
1066- #ifndef NO_TLS
1067- /* wolfSSL_alert_type_string returns short code for alert level */
1066+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
1067+ defined( OPENSSL_EXTRA_X509_SMALL ))
10681068 ExpectStrEQ (wolfSSL_alert_type_string (alert_warning ), "W" );
10691069 ExpectStrEQ (wolfSSL_alert_type_string (alert_fatal ), "F" );
10701070 ExpectStrEQ (wolfSSL_alert_type_string (0 ), "U" );
@@ -1137,8 +1137,8 @@ int test_tls12_peerauth_failsafe(void)
11371137int test_wolfSSL_alert_desc_string (void )
11381138{
11391139 EXPECT_DECLS ;
1140- #ifndef NO_TLS
1141- /* wolfSSL_alert_desc_string returns short 2-letter code */
1140+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
1141+ defined( OPENSSL_EXTRA_X509_SMALL ))
11421142 ExpectStrEQ (wolfSSL_alert_desc_string (close_notify ), "CN" );
11431143 ExpectStrEQ (wolfSSL_alert_desc_string (unexpected_message ), "UM" );
11441144 ExpectStrEQ (wolfSSL_alert_desc_string (bad_record_mac ), "BM" );
@@ -1163,7 +1163,7 @@ int test_wolfSSL_alert_desc_string(void)
11631163 ExpectStrEQ (wolfSSL_alert_desc_string (user_canceled ), "US" );
11641164 ExpectStrEQ (wolfSSL_alert_desc_string (no_renegotiation ), "NR" );
11651165 ExpectStrEQ (wolfSSL_alert_desc_string (missing_extension ), "ME" );
1166- ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "UE " );
1166+ ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "XE " );
11671167 ExpectStrEQ (wolfSSL_alert_desc_string (unrecognized_name ), "UN" );
11681168 ExpectStrEQ (wolfSSL_alert_desc_string (bad_certificate_status_response ), "BR" );
11691169 ExpectStrEQ (wolfSSL_alert_desc_string (unknown_psk_identity ), "UP" );
0 commit comments