diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2021-05-07 19:36:14 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2021-09-17 16:33:07 -0400 |
commit | 51ae14728aff9e0bd9d875d77327c6a2dfc575be (patch) | |
tree | 0d5be20c51b3c5057e90a5c48252c27af38f3bbc /lib | |
parent | 41754922aa6d4a0a5cbf1afd03950fe9a359c371 (diff) | |
download | gnutls-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |