summaryrefslogtreecommitdiff
path: root/src
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:26:18 +0200
commit1e409923cf9371737eb7c11f68afcfe2cf3db340 (patch)
tree448fb49839af371bba2e4fc11f2afd51f99f7931 /src
parentc84bc336f5a618bcd145d96835caeb8cc946c386 (diff)
downloadgnutls-1e409923cf9371737eb7c11f68afcfe2cf3db340.tar.gz
tools: document the starttls capability
Diffstat (limited to 'src')
-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 24be51a93f..be6f1ad91a 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;
}
}