Skip to content

Commit 9877bec

Browse files
authored
Merge pull request #9997 from JacobBarthelmeh/qt
add back WOLFSSL_QT macro guard for get cipher name behavior
2 parents 45b31a1 + c952b69 commit 9877bec

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/ssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10613,7 +10613,8 @@ const char* wolfSSL_CIPHER_get_name(const WOLFSSL_CIPHER* cipher)
1061310613
return NULL;
1061410614
}
1061510615

10616-
#if !defined(WOLFSSL_CIPHER_INTERNALNAME) && !defined(NO_ERROR_STRINGS)
10616+
#if !defined(WOLFSSL_CIPHER_INTERNALNAME) && !defined(NO_ERROR_STRINGS) && \
10617+
!defined(WOLFSSL_QT)
1061710618
return GetCipherNameIana(cipher->cipherSuite0, cipher->cipherSuite);
1061810619
#else
1061910620
return wolfSSL_get_cipher_name_from_suite(cipher->cipherSuite0,

tests/api.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13592,7 +13592,8 @@ static int test_wolfSSL_get_client_ciphers_on_result(WOLFSSL* ssl) {
1359213592
ExpectIntEQ(sk_SSL_CIPHER_num(ciphers), 1);
1359313593
current = sk_SSL_CIPHER_value(ciphers, 0);
1359413594
ExpectNotNull(current);
13595-
#if !defined(WOLFSSL_CIPHER_INTERNALNAME) && !defined(NO_ERROR_STRINGS)
13595+
#if !defined(WOLFSSL_CIPHER_INTERNALNAME) && !defined(NO_ERROR_STRINGS) && \
13596+
!defined(WOLFSSL_QT)
1359613597
ExpectStrEQ("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
1359713598
SSL_CIPHER_get_name(current));
1359813599
#else
@@ -26630,7 +26631,7 @@ static int test_wolfSSL_crypto_policy_ciphers(void)
2663026631

2663126632
/* We return a different cipher string depending on build settings. */
2663226633
#if !defined(WOLFSSL_CIPHER_INTERNALNAME) && \
26633-
!defined(NO_ERROR_STRINGS)
26634+
!defined(NO_ERROR_STRINGS) && !defined(WOLFSSL_QT)
2663426635
found = crypto_policy_cipher_found(ssl, "AES_128", 0);
2663526636
ExpectIntEQ(found, !is_future);
2663626637

0 commit comments

Comments
 (0)