If the TLS handshake process fatally fails (e.g. no matching cipher
suite / cert), sent an alert to notify the peer.
Bugfixes
--------
- hints module: NODATA answers also for non-address queries (!1005)
+- tls: send alert to peer if handshake fails (!1007)
Knot Resolver 5.1.1 (2020-05-19)
kr_log_verbose("[%s] gnutls_handshake failed: %s (%d)\n",
logstring,
gnutls_strerror_name(err), err);
+ /* Notify the peer about handshake failure via an alert. */
+ gnutls_alert_send_appropriate(ctx->tls_session, err);
if (handshake_cb) {
handshake_cb(session, -1);
}