mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
src/tls.c:TLSX_KeyShare_GenDhKey(): don't generate a key if one is already set.
This commit is contained in:
@@ -6096,6 +6096,9 @@ static int TLSX_KeyShare_GenDhKey(WOLFSSL *ssl, KeyShareEntry* kse)
|
|||||||
word32 p_len;
|
word32 p_len;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (kse->key != NULL)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* TODO: [TLS13] The key size should come from wolfcrypt. */
|
/* TODO: [TLS13] The key size should come from wolfcrypt. */
|
||||||
/* Pick the parameters from the named group. */
|
/* Pick the parameters from the named group. */
|
||||||
#ifdef HAVE_PUBLIC_FFDHE
|
#ifdef HAVE_PUBLIC_FFDHE
|
||||||
|
Reference in New Issue
Block a user