From: Nikos Mavrogiannopoulos Date: Sun, 24 Apr 2016 09:12:29 +0000 (+0200) Subject: ecdhe: print the received curve from the server on debug mode X-Git-Tag: gnutls_3_5_0~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e217552af91d641fdb2dd78939bd8baf8980d77d;p=thirdparty%2Fgnutls.git ecdhe: print the received curve from the server on debug mode --- diff --git a/lib/auth/ecdhe.c b/lib/auth/ecdhe.c index bfd8000318..0cfcfd1467 100644 --- a/lib/auth/ecdhe.c +++ b/lib/auth/ecdhe.c @@ -289,6 +289,13 @@ _gnutls_proc_ecdh_common_server_kx(gnutls_session_t session, DECR_LEN(data_size, 2); curve = _gnutls_tls_id_to_ecc_curve(_gnutls_read_uint16(&data[i])); + + if (curve == GNUTLS_ECC_CURVE_INVALID) { + _gnutls_debug_log("received curve %u.%u\n", (unsigned)data[i], (unsigned)data[i+1]); + } else { + _gnutls_debug_log("received curve %s\n", gnutls_ecc_curve_get_name(curve)); + } + i += 2; ret = _gnutls_session_supports_ecc_curve(session, curve);