Commit 12f5166d authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos
Browse files

gnutls-cli: print 'Handshake was completed'

The change of moving the handshake process as part of the socket
establishment, prevented the text 'Handshake was completed' from
being printed as part of a successful handshake. That message was
used by applications like gnus which use gnutls-cli. This patch
reverts that change and prints that message on successful handshakes.
parent f1e47b85
Pipeline #4004699 passed with stage
in 68 minutes and 55 seconds
......@@ -1218,6 +1218,8 @@ int main(int argc, char **argv)
socket_open(&hd, hostname, service, OPT_ARG(STARTTLS_PROTO), socket_flags, CONNECT_MSG, NULL);
hd.verbose = verbose;
printf("- Handshake was completed\n");
if (resume != 0)
if (try_resume(&hd))
return 1;
......
......@@ -465,8 +465,7 @@ socket_open(socket_st * hd, const char *hostname, const char *service,
else if (err < 0) {
fprintf(stderr, "*** handshake has failed: %s\n", gnutls_strerror(err));
exit(1);
} else if (hd->verbose)
printf("- Handshake was completed\n");
}
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment