Skip to content

Commit

Permalink
Merge pull request wolfSSL#741 from JacobBarthelmeh/version
Browse files Browse the repository at this point in the history
show version of wolfSSL linked to
  • Loading branch information
dgarske authored Sep 27, 2024
2 parents 3e3d6a8 + b8e6f59 commit 3cabbdb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion apps/wolfssh/wolfssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ static void ShowUsage(char* appPath)
appName = "wolfssh";
}

printf("%s v%s\n", appName, LIBWOLFSSH_VERSION_STRING);
printf("%s v%s linked with wolfSSL %s\n", appName,
LIBWOLFSSH_VERSION_STRING, LIBWOLFSSL_VERSION_STRING);
printf("usage: %s [-E logfile] [-G] [-l login_name] [-N] [-p port] "
"[-V] destination\n",
appName);
Expand Down
3 changes: 2 additions & 1 deletion apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ static void ServiceDebugCb(enum wolfSSH_LogLevel level, const char* const msgStr

static void ShowUsage(void)
{
printf("wolfsshd %s\n", LIBWOLFSSH_VERSION_STRING);
printf("wolfSSHd %s linked with wolfSSL %s\n", LIBWOLFSSH_VERSION_STRING,
LIBWOLFSSL_VERSION_STRING);
printf(" -? display this help and exit\n");
printf(" -f <file name> Configuration file to use, default is "
"/etc/ssh/sshd_config\n");
Expand Down
3 changes: 2 additions & 1 deletion examples/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ static const char testString[] = "Hello, wolfSSH!";

static void ShowUsage(void)
{
printf("client %s\n", LIBWOLFSSH_VERSION_STRING);
printf("client %s linked with wolfSSL %s\n", LIBWOLFSSH_VERSION_STRING,
LIBWOLFSSL_VERSION_STRING);
printf(" -? display this help and exit\n");
printf(" -h <host> host to connect to, default %s\n", wolfSshIp);
printf(" -p <num> port to connect on, default %d\n", wolfSshPort);
Expand Down
3 changes: 2 additions & 1 deletion examples/echoserver/echoserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,8 @@ static int SetDefaultSftpPath(WOLFSSH* ssh, const char* defaultSftpPath)

static void ShowUsage(void)
{
printf("echoserver %s\n", LIBWOLFSSH_VERSION_STRING);
printf("echoserver %s linked with wolfSSL %s\n", LIBWOLFSSH_VERSION_STRING,
LIBWOLFSSL_VERSION_STRING);
printf(" -? display this help and exit\n");
printf(" -1 exit after single (one) connection\n");
printf(" -e expect ECC public key from client\n");
Expand Down
3 changes: 2 additions & 1 deletion examples/portfwd/portfwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static inline int max(int a, int b)

static void ShowUsage(void)
{
printf("portfwd %s\n"
printf("portfwd %s linked with wolfSSL %s\n"
" -? display this help and exit\n"
" -h <host> host to connect to, default %s\n"
" -p <num> port to connect on, default %u\n"
Expand All @@ -90,6 +90,7 @@ static void ShowUsage(void)
" -T <host> host to forward to, default to host\n"
" -t <num> port to forward to (REQUIRED)\n",
LIBWOLFSSH_VERSION_STRING,
LIBWOLFSSL_VERSION_STRING,
wolfSshIp, wolfSshPort, defaultFwdFromHost);
}

Expand Down
3 changes: 2 additions & 1 deletion examples/scpclient/scpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
#define USAGE_WIDE "12"
static void ShowUsage(void)
{
printf("wolfscp %s\n", LIBWOLFSSH_VERSION_STRING);
printf("wolfscp %s linked with wolfSSL %s\n", LIBWOLFSSH_VERSION_STRING,
LIBWOLFSSL_VERSION_STRING);
printf(" -%c %-" USAGE_WIDE "s %s\n", 'h', "",
"display this help and exit");
printf(" -%c %-" USAGE_WIDE "s %s, default %s\n", 'H', "<host>",
Expand Down
3 changes: 2 additions & 1 deletion examples/sftpclient/sftpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ static void ShowCommands(void)

static void ShowUsage(void)
{
printf("wolfsftp %s\n", LIBWOLFSSH_VERSION_STRING);
printf("wolfsftp %s linked with wolfSSL %s\n", LIBWOLFSSH_VERSION_STRING,
LIBWOLFSSL_VERSION_STRING);
printf(" -? display this help and exit\n");
printf(" -h <host> host to connect to, default %s\n", wolfSshIp);
printf(" -p <num> port to connect on, default %d\n", wolfSshPort);
Expand Down

0 comments on commit 3cabbdb

Please sign in to comment.