Skip to content

Commit 8c2fe0b

Browse files
add back WOLFSSL_QT macro guard for order of cipher suites
1 parent a98cb45 commit 8c2fe0b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16035,7 +16035,7 @@ static WC_INLINE int sslCipherMinMaxCheck(const WOLFSSL *ssl, byte suite0,
1603516035
WOLF_STACK_OF(WOLFSSL_CIPHER) *wolfSSL_get_ciphers_compat(const WOLFSSL *ssl)
1603616036
{
1603716037
const Suites* suites;
16038-
#if defined(OPENSSL_ALL)
16038+
#if defined(OPENSSL_ALL) || defined(WOLFSSL_QT)
1603916039
const CipherSuiteInfo* cipher_names = GetCipherNames();
1604016040
int cipherSz = GetCipherNamesSize();
1604116041
#endif
@@ -16058,7 +16058,7 @@ WOLF_STACK_OF(WOLFSSL_CIPHER) *wolfSSL_get_ciphers_compat(const WOLFSSL *ssl)
1605816058
return NULL;
1605916059

1606016060
/* higher priority of cipher suite will be on top of stack */
16061-
#if defined(OPENSSL_ALL)
16061+
#if defined(OPENSSL_ALL) || defined(WOLFSSL_QT)
1606216062
for (i = suites->suiteSz - 2; i >=0; i-=2)
1606316063
#else
1606416064
for (i = 0; i < suites->suiteSz; i+=2)
@@ -16078,7 +16078,7 @@ WOLF_STACK_OF(WOLFSSL_CIPHER) *wolfSSL_get_ciphers_compat(const WOLFSSL *ssl)
1607816078
cipher.cipherSuite0 = suites->suites[i];
1607916079
cipher.cipherSuite = suites->suites[i+1];
1608016080
cipher.ssl = ssl;
16081-
#if defined(OPENSSL_ALL)
16081+
#if defined(OPENSSL_ALL) || defined(WOLFSSL_QT)
1608216082
cipher.in_stack = 1;
1608316083
{
1608416084
int j;

0 commit comments

Comments
 (0)