verbose = info.more_info;
}
+
+void
+tls_test_version (void)
+{
+ const char *v = gnutls_check_version (NULL);
+
+ printf ("gnutls-cli-debug (GnuTLS) %s\n", LIBGNUTLS_VERSION);
+ if (strcmp (v, LIBGNUTLS_VERSION) != 0)
+ printf ("libgnutls %s\n", v);
+}
# include <io.h>
#endif
+void tls_test_version(void);
+
#}
helpnode "GNU TLS debug client\nUsage: gnutls-cli-debug [options] hostname\n\n"
#int more_info;
option (v, verbose) { $more_info += 1 } "More verbose output"
+option (v, version) { tls_test_version(); exit(0); } "prints the program's version number"
option (h, help) { gaa_help(); exit(0); } "prints this help"