[Pkg-wmaker-commits] [wmbiff] 16/38: try to print a helpful hint message to use gnutls-cli-debug

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:03:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_16
in repository wmbiff.

commit 9ba0a841fcf6b4a6c8c775ef6d0036272dbd27eb
Author: bluehal <bluehal>
Date:   Thu Apr 17 01:54:36 2003 +0000

    try to print a helpful hint message to use gnutls-cli-debug
---
 wmbiff/tlsComm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/wmbiff/tlsComm.c b/wmbiff/tlsComm.c
index aaf953c..b99e5e2 100644
--- a/wmbiff/tlsComm.c
+++ b/wmbiff/tlsComm.c
@@ -443,6 +443,12 @@ struct connection_state *initialize_gnutls(int sd, char *name, Pop3 pc,
 			"%s: This copy of wmbiff was compiled with \n"
 			"  gnutls version %s.\n", name, LIBGNUTLS_VERSION);
 		gnutls_perror(zok);
+		if (scs->pc->u.pop_imap.serverPort != 143 /* starttls */ ) {
+			TDM(DEBUG_ERROR,
+				"%s: Please run 'gnutls-cli-debug -p %d %s' to test ssl directly.\n"
+				"  That tool provides a lower-level test of gnutls with your server.\n",
+				name, scs->pc->u.pop_imap.serverPort, remote_hostname);
+		}
 		gnutls_deinit(scs->tls_state);
 		free(scs);
 		return (NULL);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list