move CipherRequires() to both client and server, VerifyClientSuite() to client only
This commit is contained in:
parent
d875931a3f
commit
4aac37bff9
922
src/internal.c
922
src/internal.c
File diff suppressed because it is too large
Load Diff
@ -39,6 +39,7 @@
|
||||
|
||||
int SetCipherSpecs(CYASSL* ssl)
|
||||
{
|
||||
#ifndef NO_CYASSL_CLIENT
|
||||
if (ssl->options.side == CYASSL_CLIENT_END) {
|
||||
/* server side verified before SetCipherSpecs call */
|
||||
if (VerifyClientSuite(ssl) != 1) {
|
||||
@ -46,6 +47,8 @@ int SetCipherSpecs(CYASSL* ssl)
|
||||
return UNSUPPORTED_SUITE;
|
||||
}
|
||||
}
|
||||
#endif /* NO_CYASSL_CLIENT */
|
||||
|
||||
/* ECC extensions, or AES-CCM */
|
||||
if (ssl->options.cipherSuite0 == ECC_BYTE) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user