summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-19 19:12:51 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-19 19:27:35 +0200
commit2f476d67150e6436a5cf4b08947656cfaf69a684 (patch)
tree0e74e8befad62af30fb919cfafdc6fd429260203
parent0f65c523d48f12bf67e3ba4cee13ef009455f5d3 (diff)
downloadgnutls-2f476d67150e6436a5cf4b08947656cfaf69a684.tar.gz
tools: document the starttls capability
-rw-r--r--src/cli-args.def7
-rw-r--r--src/cli-debug-args.def8
-rw-r--r--src/socket.c2
3 files changed, 15 insertions, 2 deletions
diff --git a/src/cli-args.def b/src/cli-args.def
index a7e300948d..96e11073ad 100644
--- a/src/cli-args.def
+++ b/src/cli-args.def
@@ -424,6 +424,13 @@ Connecting to '127.0.0.1:5556'...
@end example
By keeping the --pskusername parameter and removing the --pskkey parameter, it will query only for the password during the handshake.
+@subheading Connecting to STARTTLS services
+
+You could also use the client to connect to services with starttls capability.
+@example
+$ gnutls-cli --starttls-proto smtp --port 25 localhost
+@end example
+
@subheading Listing ciphersuites in a priority string
To list the ciphersuites in a priority string:
@example
diff --git a/src/cli-debug-args.def b/src/cli-debug-args.def
index 5146c70cab..56e289ce9a 100644
--- a/src/cli-debug-args.def
+++ b/src/cli-debug-args.def
@@ -52,7 +52,7 @@ doc-section = {
ds-format = 'texi';
ds-text = <<-_EOF_
@example
-$ ../src/gnutls-cli-debug localhost
+$ gnutls-cli-debug localhost
GnuTLS debug client 3.5.0
Checking localhost:443
for SSL 3.0 (RFC6101) support... yes
@@ -101,6 +101,12 @@ whether a bogus TLS record version in the client hello is accepted... yes
for OCSP status response (RFC6066) support... no
for OpenPGP authentication (RFC6091) support... no
@end example
+
+You could also use the client to debug services with starttls capability.
+@example
+$ gnutls-cli-debug --starttls-proto smtp --port 25 localhost
+@end example
+
_EOF_;
};
diff --git a/src/socket.c b/src/socket.c
index be8a4a1ae8..9ebdcbec0d 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -242,7 +242,7 @@ socket_starttls(socket_st * socket, const char *app_proto)
if (!c_isdigit(app_proto[0])) {
static int warned = 0;
if (warned == 0) {
- fprintf(stderr, "unknown protocol %s\n", app_proto);
+ fprintf(stderr, "unknown protocol '%s'\n", app_proto);
warned = 1;
}
}