InitSuites
changes to order making BUILD_TLS_AES_256_GCM_SHA384
be prioritized over BUILD_TLS_AES_128_GCM_SHA256
This commit is contained in:
parent
1cf96eb72c
commit
82fca1c483
@ -3304,13 +3304,6 @@ void InitSuites(Suites* suites, ProtocolVersion pv, int keySz, word16 haveRSA,
|
||||
return; /* trust user settings, don't override */
|
||||
|
||||
#ifdef WOLFSSL_TLS13
|
||||
#ifdef BUILD_TLS_AES_128_GCM_SHA256
|
||||
if (tls1_3) {
|
||||
suites->suites[idx++] = TLS13_BYTE;
|
||||
suites->suites[idx++] = TLS_AES_128_GCM_SHA256;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BUILD_TLS_AES_256_GCM_SHA384
|
||||
if (tls1_3) {
|
||||
suites->suites[idx++] = TLS13_BYTE;
|
||||
@ -3318,6 +3311,13 @@ void InitSuites(Suites* suites, ProtocolVersion pv, int keySz, word16 haveRSA,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BUILD_TLS_AES_128_GCM_SHA256
|
||||
if (tls1_3) {
|
||||
suites->suites[idx++] = TLS13_BYTE;
|
||||
suites->suites[idx++] = TLS_AES_128_GCM_SHA256;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef BUILD_TLS_CHACHA20_POLY1305_SHA256
|
||||
if (tls1_3) {
|
||||
suites->suites[idx++] = TLS13_BYTE;
|
||||
|
Loading…
Reference in New Issue
Block a user