mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #4087 from miyazakh/get_ciphers_compat
higher priority of cipher suite is on top of stack
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user