mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Add RFC link to help understand constraints
This commit is contained in:
@@ -693,8 +693,10 @@ static int SendStatelessReplyDtls13(const WOLFSSL* ssl, WolfSSL_CH* ch)
|
|||||||
cs.cipherSuite0 = pskInfo.cipherSuite0;
|
cs.cipherSuite0 = pskInfo.cipherSuite0;
|
||||||
cs.cipherSuite = pskInfo.cipherSuite;
|
cs.cipherSuite = pskInfo.cipherSuite;
|
||||||
|
|
||||||
if (haveSG && !haveKS) {
|
/* https://datatracker.ietf.org/doc/html/rfc8446#section-9.2 */
|
||||||
WOLFSSL_MSG("Client didn't send KeyShare or Supported Groups.");
|
if (haveSG ^ haveKS) {
|
||||||
|
WOLFSSL_MSG("Client needs to send both or none of KeyShare and "
|
||||||
|
"SupportedGroups");
|
||||||
ERROR_OUT(INCOMPLETE_DATA, dtls13_cleanup);
|
ERROR_OUT(INCOMPLETE_DATA, dtls13_cleanup);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -711,9 +713,10 @@ static int SendStatelessReplyDtls13(const WOLFSSL* ssl, WolfSSL_CH* ch)
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
/* https://datatracker.ietf.org/doc/html/rfc8446#section-9.2 */
|
||||||
if (!haveKS || !haveSA || !haveSG) {
|
if (!haveKS || !haveSA || !haveSG) {
|
||||||
WOLFSSL_MSG("Client didn't send KeyShare or SigAlgs or "
|
WOLFSSL_MSG("Client didn't send KeyShare or SigAlgs or "
|
||||||
"Supported Groups.");
|
"SupportedGroups.");
|
||||||
ERROR_OUT(INCOMPLETE_DATA, dtls13_cleanup);
|
ERROR_OUT(INCOMPLETE_DATA, dtls13_cleanup);
|
||||||
}
|
}
|
||||||
ret = MatchSuite_ex(ssl, &suites, &cs, parsedExts);
|
ret = MatchSuite_ex(ssl, &suites, &cs, parsedExts);
|
||||||
|
Reference in New Issue
Block a user