summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-05-07 19:36:14 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-09-17 16:33:07 -0400
commit51ae14728aff9e0bd9d875d77327c6a2dfc575be (patch)
tree0d5be20c51b3c5057e90a5c48252c27af38f3bbc /lib
parent41754922aa6d4a0a5cbf1afd03950fe9a359c371 (diff)
downloadgnutls-51ae14728aff9e0bd9d875d77327c6a2dfc575be.tar.gz
lib/pk: treat modern ECDH octet streams the same way as eddsa streams.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pk.c b/lib/pk.c
index f932589ede..fcf3af1989 100644
--- a/lib/pk.c
+++ b/lib/pk.c
@@ -1031,7 +1031,7 @@ int _gnutls_params_get_ecc_raw(const gnutls_pk_params_st* params,
e = _gnutls_ecc_curve_get_params(params->curve);
- if (_curve_is_eddsa(e)) {
+ if (_curve_is_eddsa(e) || _curve_is_modern_ecdh(e)) {
if (x) {
ret = _gnutls_set_datum(x, params->raw_pub.data, params->raw_pub.size);
if (ret < 0) {