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 )
@@ -773,8 +773,8 @@ int test_tls_set_curves_list_ecc_fallback(void)
773773int test_wolfSSL_alert_type_string (void )
774774{
775775 EXPECT_DECLS ;
776- #ifndef NO_TLS
777- /* wolfSSL_alert_type_string returns short code for alert level */
776+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
777+ defined( OPENSSL_EXTRA_X509_SMALL ))
778778 ExpectStrEQ (wolfSSL_alert_type_string (alert_warning ), "W" );
779779 ExpectStrEQ (wolfSSL_alert_type_string (alert_fatal ), "F" );
780780 ExpectStrEQ (wolfSSL_alert_type_string (0 ), "U" );
@@ -788,8 +788,8 @@ int test_wolfSSL_alert_type_string(void)
788788int test_wolfSSL_alert_desc_string (void )
789789{
790790 EXPECT_DECLS ;
791- #ifndef NO_TLS
792- /* wolfSSL_alert_desc_string returns short 2-letter code */
791+ #if !defined( NO_TLS ) && (defined( OPENSSL_EXTRA ) || \
792+ defined( OPENSSL_EXTRA_X509_SMALL ))
793793 ExpectStrEQ (wolfSSL_alert_desc_string (close_notify ), "CN" );
794794 ExpectStrEQ (wolfSSL_alert_desc_string (unexpected_message ), "UM" );
795795 ExpectStrEQ (wolfSSL_alert_desc_string (bad_record_mac ), "BM" );
@@ -814,7 +814,7 @@ int test_wolfSSL_alert_desc_string(void)
814814 ExpectStrEQ (wolfSSL_alert_desc_string (user_canceled ), "US" );
815815 ExpectStrEQ (wolfSSL_alert_desc_string (no_renegotiation ), "NR" );
816816 ExpectStrEQ (wolfSSL_alert_desc_string (missing_extension ), "ME" );
817- ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "UE " );
817+ ExpectStrEQ (wolfSSL_alert_desc_string (unsupported_extension ), "XE " );
818818 ExpectStrEQ (wolfSSL_alert_desc_string (unrecognized_name ), "UN" );
819819 ExpectStrEQ (wolfSSL_alert_desc_string (bad_certificate_status_response ), "BR" );
820820 ExpectStrEQ (wolfSSL_alert_desc_string (unknown_psk_identity ), "UP" );
0 commit comments