]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
lib/pk: treat modern ECDH octet streams the same way as eddsa streams.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 7 May 2021 23:36:14 +0000 (19:36 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 17 Sep 2021 20:33:07 +0000 (16:33 -0400)
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
lib/pk.c

index f932589ede9afc2a63161d2a54ac17440400d48d..fcf3af1989104c4761e304d233726a3b2aa675e9 100644 (file)
--- 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) {