Update TLCP ServerKeyExchange

This commit is contained in:
Zhi Guan
2026-06-12 09:40:35 +08:00
parent f37938991c
commit d4be17a01f
4 changed files with 77 additions and 24 deletions

View File

@@ -215,11 +215,11 @@ static int test_tls_server_key_exchange(void)
size_t siglen;
tls_record_set_protocol(record, TLS_protocol_tlcp);
if (tlcp_record_set_handshake_server_key_exchange_pke(record, &recordlen, sig, sizeof(sig)) != 1) {
if (tlcp_record_set_handshake_server_key_exchange_ecc(record, &recordlen, sig, sizeof(sig)) != 1) {
error_print();
return -1;
}
if (tlcp_record_get_handshake_server_key_exchange_pke(record, &psig, &siglen) != 1) {
if (tlcp_record_get_handshake_server_key_exchange_ecc(record, &psig, &siglen) != 1) {
error_print();
return -1;
}