mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Fix for server-side reporting of curve in wolfSSL_get_curve_name
if client_hello includes ffdhe, but ECC curve is used.
This commit is contained in:
@ -29398,6 +29398,13 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
ssl->arrays->preMasterSz = private_key->dp->size;
|
ssl->arrays->preMasterSz = private_key->dp->size;
|
||||||
|
|
||||||
ssl->peerEccKeyPresent = 1;
|
ssl->peerEccKeyPresent = 1;
|
||||||
|
|
||||||
|
#if defined(WOLFSSL_TLS13) || defined(HAVE_FFDHE)
|
||||||
|
/* client_hello may have sent FFEDH2048, which sets namedGroup,
|
||||||
|
but that is not being used, so clear it */
|
||||||
|
/* resolves issue with server side wolfSSL_get_curve_name */
|
||||||
|
ssl->namedGroup = 0;
|
||||||
|
#endif
|
||||||
#endif /* HAVE_ECC */
|
#endif /* HAVE_ECC */
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user