Skip to content

Commit 7561911

Browse files
committed
fix: Fix build errors for some tests on pipeline
1 parent c1a507e commit 7561911

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12202,7 +12202,7 @@ const char* wolfSSL_alert_desc_string(int alertID)
1220212202
case missing_extension:
1220312203
return "ME";
1220412204
case unsupported_extension:
12205-
return "UE";
12205+
return "XE";
1220612206
case unrecognized_name:
1220712207
return "UN";
1220812208
case bad_certificate_status_response:

tests/api/test_tls.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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

3737
int test_utils_memio_move_message(void)
@@ -1107,8 +1107,8 @@ int test_tls12_corrupted_finished(void)
11071107
int 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)
11811181
int 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

Comments
 (0)