forked from wolfSSL/wolfssl
Merge pull request #501 from ejohnstown/key-usage
only check server's cert key encipher on client for RSA key exchange
This commit is contained in:
@@ -6489,6 +6489,7 @@ static int DoCertificate(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
#ifndef IGNORE_KEY_EXTENSIONS
|
#ifndef IGNORE_KEY_EXTENSIONS
|
||||||
if (dCert->extKeyUsageSet) {
|
if (dCert->extKeyUsageSet) {
|
||||||
if ((ssl->specs.kea == rsa_kea) &&
|
if ((ssl->specs.kea == rsa_kea) &&
|
||||||
|
(ssl->options.side == WOLFSSL_CLIENT_END) &&
|
||||||
(dCert->extKeyUsage & KEYUSE_KEY_ENCIPHER) == 0) {
|
(dCert->extKeyUsage & KEYUSE_KEY_ENCIPHER) == 0) {
|
||||||
ret = KEYUSE_ENCIPHER_E;
|
ret = KEYUSE_ENCIPHER_E;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user