higher priority of cipher suite is on top of stack

This commit is contained in:
Hideki Miyazaki
2021-06-04 11:21:44 +09:00
parent 258e0c10da
commit 22430ccdd3

View File

@ -47180,7 +47180,12 @@ WOLF_STACK_OF(WOLFSSL_CIPHER) *wolfSSL_get_ciphers_compat(const WOLFSSL *ssl)
#if defined(OPENSSL_ALL) || defined(WOLFSSL_QT)
int j;
#endif
#if defined(WOLFSSL_QT)
/* higher priority of cipher suite will be on top of stack */
for (i = suites->suiteSz - 2; i >=0; i-=2) {
#else
for (i = 0; i < suites->suiteSz; i+=2) {
#endif
WOLFSSL_STACK* add;
/* A couple of suites are placeholders for special options,