summaryrefslogtreecommitdiffhomepage
path: root/common-runopts.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-07-27 22:06:26 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-07-27 22:06:26 +0800
commited0552f21417ffb90d52ac12becb03cf6a03e13c (patch)
tree10929da2b6d8a4d48058825a9e3b68e1d33bc43a /common-runopts.c
parent5cf83a7212c0f353e7367766cc4bbf349e83ff0b (diff)
Add '-V' for version
-h should exit with success Update manpages
Diffstat (limited to 'common-runopts.c')
-rw-r--r--common-runopts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common-runopts.c b/common-runopts.c
index 699ebda..cdac77e 100644
--- a/common-runopts.c
+++ b/common-runopts.c
@@ -106,3 +106,8 @@ parse_ciphers_macs()
}
#endif
+void print_version(const char* name) {
+ fprintf(stderr, "Dropbear %s v%s\n", name, DROPBEAR_VERSION);
+}
+
+