mirror of https://github.com/wolfSSL/wolfssl.git
check hashsigalgo matches ssl suites on client side.
parent
7dfef18cf4
commit
f7f3ba9c76
|
@ -31104,6 +31104,15 @@ static int DoServerKeyExchange(WOLFSSL* ssl, const byte* input,
|
||||||
ERROR_OUT(BUFFER_ERROR, exit_dske);
|
ERROR_OUT(BUFFER_ERROR, exit_dske);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check if hashSigAlgo in Server Key Exchange is supported
|
||||||
|
* in our ssl->suites or ssl->ctx->suites. */
|
||||||
|
if (!SupportedHashSigAlgo(ssl, &input[args->idx])) {
|
||||||
|
#ifdef WOLFSSL_EXTRA_ALERTS
|
||||||
|
SendAlert(ssl, alert_fatal, handshake_failure);
|
||||||
|
#endif
|
||||||
|
ERROR_OUT(MATCH_SUITE_ERROR, exit_dske);
|
||||||
|
}
|
||||||
|
|
||||||
DecodeSigAlg(&input[args->idx], &ssl->options.peerHashAlgo,
|
DecodeSigAlg(&input[args->idx], &ssl->options.peerHashAlgo,
|
||||||
&sigAlgo);
|
&sigAlgo);
|
||||||
#ifndef NO_RSA
|
#ifndef NO_RSA
|
||||||
|
|
Loading…
Reference in New Issue