Skip to content

Commit f15c896

Browse files
committed
Build_fix:
When building with --enable-opensslextra=x509small, only OPENSSL_EXTRA_X509_SMALL is defined, not OPENSSL_EXTRA, so these functions are not compiled into the library
1 parent 7561911 commit f15c896

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/api/test_tls.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,7 @@ int test_tls12_corrupted_finished(void)
11071107
int test_wolfSSL_alert_type_string(void)
11081108
{
11091109
EXPECT_DECLS;
1110-
#if !defined(NO_TLS) && (defined(OPENSSL_EXTRA) || \
1111-
defined(OPENSSL_EXTRA_X509_SMALL))
1110+
#if !defined(NO_TLS) && defined(OPENSSL_EXTRA)
11121111
ExpectStrEQ(wolfSSL_alert_type_string(alert_warning), "W");
11131112
ExpectStrEQ(wolfSSL_alert_type_string(alert_fatal), "F");
11141113
ExpectStrEQ(wolfSSL_alert_type_string(0), "U");
@@ -1181,8 +1180,7 @@ int test_tls12_peerauth_failsafe(void)
11811180
int test_wolfSSL_alert_desc_string(void)
11821181
{
11831182
EXPECT_DECLS;
1184-
#if !defined(NO_TLS) && (defined(OPENSSL_EXTRA) || \
1185-
defined(OPENSSL_EXTRA_X509_SMALL))
1183+
#if !defined(NO_TLS) && defined(OPENSSL_EXTRA)
11861184
ExpectStrEQ(wolfSSL_alert_desc_string(close_notify), "CN");
11871185
ExpectStrEQ(wolfSSL_alert_desc_string(unexpected_message), "UM");
11881186
ExpectStrEQ(wolfSSL_alert_desc_string(bad_record_mac), "BM");

0 commit comments

Comments
 (0)