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 )
@@ -862,8 +862,8 @@ int test_tls_set_curves_list_ecc_fallback(void)
862862int test_wolfSSL_alert_type_string (void )
863863{
864864 EXPECT_DECLS ;
865- #ifndef NO_TLS
866- /* wolfSSL_alert_type_string returns short code for alert level */
865+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
866+ defined( OPENSSL_EXTRA_X509_SMALL ))
867867 ExpectStrEQ (wolfSSL_alert_type_string (alert_warning ), "W" );
868868 ExpectStrEQ (wolfSSL_alert_type_string (alert_fatal ), "F" );
869869 ExpectStrEQ (wolfSSL_alert_type_string (0 ), "U" );
@@ -877,8 +877,8 @@ int test_wolfSSL_alert_type_string(void)
877877int test_wolfSSL_alert_desc_string (void )
878878{
879879 EXPECT_DECLS ;
880- #ifndef NO_TLS
881- /* wolfSSL_alert_desc_string returns short 2-letter code */
880+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
881+ defined( OPENSSL_EXTRA_X509_SMALL ))
882882 ExpectStrEQ (wolfSSL_alert_desc_string (close_notify ), "CN" );
883883 ExpectStrEQ (wolfSSL_alert_desc_string (unexpected_message ), "UM" );
884884 ExpectStrEQ (wolfSSL_alert_desc_string (bad_record_mac ), "BM" );
@@ -903,7 +903,7 @@ int test_wolfSSL_alert_desc_string(void)
903903 ExpectStrEQ (wolfSSL_alert_desc_string (user_canceled ), "US" );
904904 ExpectStrEQ (wolfSSL_alert_desc_string (no_renegotiation ), "NR" );
905905 ExpectStrEQ (wolfSSL_alert_desc_string (missing_extension ), "ME" );
906- ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "UE " );
906+ ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "XE " );
907907 ExpectStrEQ (wolfSSL_alert_desc_string (unrecognized_name ), "UN" );
908908 ExpectStrEQ (wolfSSL_alert_desc_string (bad_certificate_status_response ), "BR" );
909909 ExpectStrEQ (wolfSSL_alert_desc_string (unknown_psk_identity ), "UP" );
0 commit comments