Skip to content

Commit b977c00

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 1a611b9 commit b977c00

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
@@ -862,8 +862,7 @@ int test_tls_set_curves_list_ecc_fallback(void)
862862
int test_wolfSSL_alert_type_string(void)
863863
{
864864
EXPECT_DECLS;
865-
#if !defined(NO_TLS) && (defined(OPENSSL_EXTRA) || \
866-
defined(OPENSSL_EXTRA_X509_SMALL))
865+
#if !defined(NO_TLS) && defined(OPENSSL_EXTRA)
867866
ExpectStrEQ(wolfSSL_alert_type_string(alert_warning), "W");
868867
ExpectStrEQ(wolfSSL_alert_type_string(alert_fatal), "F");
869868
ExpectStrEQ(wolfSSL_alert_type_string(0), "U");
@@ -877,8 +876,7 @@ int test_wolfSSL_alert_type_string(void)
877876
int test_wolfSSL_alert_desc_string(void)
878877
{
879878
EXPECT_DECLS;
880-
#if !defined(NO_TLS) && (defined(OPENSSL_EXTRA) || \
881-
defined(OPENSSL_EXTRA_X509_SMALL))
879+
#if !defined(NO_TLS) && defined(OPENSSL_EXTRA)
882880
ExpectStrEQ(wolfSSL_alert_desc_string(close_notify), "CN");
883881
ExpectStrEQ(wolfSSL_alert_desc_string(unexpected_message), "UM");
884882
ExpectStrEQ(wolfSSL_alert_desc_string(bad_record_mac), "BM");

0 commit comments

Comments
 (0)