move CipherRequires() to both client and server, VerifyClientSuite() to client only

This commit is contained in:
toddouska 2014-07-02 10:48:04 -07:00
parent d875931a3f
commit 4aac37bff9
2 changed files with 464 additions and 461 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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) {