From: Simon Ruderich Date: Sun, 11 Mar 2012 21:58:51 +0000 (+0100) Subject: src/tlsproxy.c: Display version in help and debug startup message. X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=commitdiff_plain;h=0b7b01d255126abef7b882c894412a85ad2bdecc src/tlsproxy.c: Display version in help and debug startup message. --- 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");