Merge pull request #4087 from miyazakh/get_ciphers_compat

higher priority of cipher suite is on top of stack
This commit is contained in:
Chris Conlon
2021-06-22 10:22:43 -06:00
committed by GitHub

View File

@ -47446,8 +47446,12 @@ WOLF_STACK_OF(WOLFSSL_CIPHER) *wolfSSL_get_ciphers_compat(const WOLFSSL *ssl)
int i; int i;
#if defined(OPENSSL_ALL) || defined(WOLFSSL_QT) #if defined(OPENSSL_ALL) || defined(WOLFSSL_QT)
int j; int j;
#endif
/* 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) { for (i = 0; i < suites->suiteSz; i+=2) {
#endif
WOLFSSL_STACK* add; WOLFSSL_STACK* add;
/* A couple of suites are placeholders for special options, /* A couple of suites are placeholders for special options,