mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Set namedGroup when generating pqc ciphertext
This fixes an issue where wolfSSL_get_curve_name() will return NULL when using PQC groups.
This commit is contained in:
@@ -8991,6 +8991,10 @@ static int server_generate_pqc_ciphertext(WOLFSSL* ssl,
|
|||||||
keyShareEntry->pubKey = ciphertext;
|
keyShareEntry->pubKey = ciphertext;
|
||||||
keyShareEntry->pubKeyLen = (word32)(ecc_kse->pubKeyLen + ctSz);
|
keyShareEntry->pubKeyLen = (word32)(ecc_kse->pubKeyLen + ctSz);
|
||||||
ciphertext = NULL;
|
ciphertext = NULL;
|
||||||
|
|
||||||
|
/* Set namedGroup so wolfSSL_get_curve_name() can function properly on
|
||||||
|
* the server side. */
|
||||||
|
ssl->namedGroup = keyShareEntry->group;
|
||||||
}
|
}
|
||||||
|
|
||||||
TLSX_KeyShare_FreeAll(ecc_kse, ssl->heap);
|
TLSX_KeyShare_FreeAll(ecc_kse, ssl->heap);
|
||||||
|
Reference in New Issue
Block a user