1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

dirmngr: Print the last alert message returned by NTBTLS.

* dirmngr/http.c (send_request): Print the last TLS alert.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2020-08-27 09:02:21 +02:00
parent 9f148360a2
commit 05358d7384
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -2056,6 +2056,14 @@ send_request (ctrl_t ctrl, http_t hd, const char *httphost, const char *auth,
while ((err = ntbtls_handshake (hd->session->tls_session)))
{
#if NTBTLS_VERSION_NUMBER >= 0x000200
unsigned int tlevel, ttype;
const char *s = ntbtls_get_last_alert (hd->session->tls_session,
&tlevel, &ttype);
if (s)
log_info ("TLS alert: %s (%u.%u)\n", s, tlevel, ttype);
#endif
switch (err)
{
default: