From 0b7b01d255126abef7b882c894412a85ad2bdecc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 11 Mar 2012 22:58:51 +0100 Subject: [PATCH] src/tlsproxy.c: Display version in help and debug startup message. --- src/tlsproxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tlsproxy.c b/src/tlsproxy.c index be4c5f3..86ee227 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -198,6 +198,7 @@ int main(int argc, char **argv) { } if (LOG_DEBUG_LEVEL <= global_log_level) { + printf("tlsproxy %s\n", VERSION); printf("Listening for connections on port %d.\n", port); if (NULL != global_proxy_host && NULL != global_proxy_port) { @@ -340,6 +341,8 @@ static void parse_arguments(int argc, char **argv) { } } static void print_usage(const char *argv) { + fprintf(stderr, "tlsproxy %s, a certificate checking TLS proxy\n", + VERSION); fprintf(stderr, "Usage: %s [-d level] [-p host:port] [-t count] [-u] port\n", argv); fprintf(stderr, "\n"); -- 2.45.2