mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #741 from JacobBarthelmeh/version
show version of wolfSSL linked topull/746/head
commit
3cabbdb703
|
@ -93,7 +93,8 @@ static void ShowUsage(char* appPath)
|
||||||
appName = "wolfssh";
|
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] "
|
printf("usage: %s [-E logfile] [-G] [-l login_name] [-N] [-p port] "
|
||||||
"[-V] destination\n",
|
"[-V] destination\n",
|
||||||
appName);
|
appName);
|
||||||
|
|
|
@ -181,7 +181,8 @@ static void ServiceDebugCb(enum wolfSSH_LogLevel level, const char* const msgStr
|
||||||
|
|
||||||
static void ShowUsage(void)
|
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(" -? display this help and exit\n");
|
||||||
printf(" -f <file name> Configuration file to use, default is "
|
printf(" -f <file name> Configuration file to use, default is "
|
||||||
"/etc/ssh/sshd_config\n");
|
"/etc/ssh/sshd_config\n");
|
||||||
|
|
|
@ -82,7 +82,8 @@ static const char testString[] = "Hello, wolfSSH!";
|
||||||
|
|
||||||
static void ShowUsage(void)
|
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(" -? display this help and exit\n");
|
||||||
printf(" -h <host> host to connect to, default %s\n", wolfSshIp);
|
printf(" -h <host> host to connect to, default %s\n", wolfSshIp);
|
||||||
printf(" -p <num> port to connect on, default %d\n", wolfSshPort);
|
printf(" -p <num> port to connect on, default %d\n", wolfSshPort);
|
||||||
|
|
|
@ -2288,7 +2288,8 @@ static int SetDefaultSftpPath(WOLFSSH* ssh, const char* defaultSftpPath)
|
||||||
|
|
||||||
static void ShowUsage(void)
|
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(" -? display this help and exit\n");
|
||||||
printf(" -1 exit after single (one) connection\n");
|
printf(" -1 exit after single (one) connection\n");
|
||||||
printf(" -e expect ECC public key from client\n");
|
printf(" -e expect ECC public key from client\n");
|
||||||
|
|
|
@ -79,7 +79,7 @@ static inline int max(int a, int b)
|
||||||
|
|
||||||
static void ShowUsage(void)
|
static void ShowUsage(void)
|
||||||
{
|
{
|
||||||
printf("portfwd %s\n"
|
printf("portfwd %s linked with wolfSSL %s\n"
|
||||||
" -? display this help and exit\n"
|
" -? display this help and exit\n"
|
||||||
" -h <host> host to connect to, default %s\n"
|
" -h <host> host to connect to, default %s\n"
|
||||||
" -p <num> port to connect on, default %u\n"
|
" -p <num> port to connect on, default %u\n"
|
||||||
|
@ -90,6 +90,7 @@ static void ShowUsage(void)
|
||||||
" -T <host> host to forward to, default to host\n"
|
" -T <host> host to forward to, default to host\n"
|
||||||
" -t <num> port to forward to (REQUIRED)\n",
|
" -t <num> port to forward to (REQUIRED)\n",
|
||||||
LIBWOLFSSH_VERSION_STRING,
|
LIBWOLFSSH_VERSION_STRING,
|
||||||
|
LIBWOLFSSL_VERSION_STRING,
|
||||||
wolfSshIp, wolfSshPort, defaultFwdFromHost);
|
wolfSshIp, wolfSshPort, defaultFwdFromHost);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,8 @@
|
||||||
#define USAGE_WIDE "12"
|
#define USAGE_WIDE "12"
|
||||||
static void ShowUsage(void)
|
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', "",
|
printf(" -%c %-" USAGE_WIDE "s %s\n", 'h', "",
|
||||||
"display this help and exit");
|
"display this help and exit");
|
||||||
printf(" -%c %-" USAGE_WIDE "s %s, default %s\n", 'H', "<host>",
|
printf(" -%c %-" USAGE_WIDE "s %s, default %s\n", 'H', "<host>",
|
||||||
|
|
|
@ -328,7 +328,8 @@ static void ShowCommands(void)
|
||||||
|
|
||||||
static void ShowUsage(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(" -? display this help and exit\n");
|
||||||
printf(" -h <host> host to connect to, default %s\n", wolfSshIp);
|
printf(" -h <host> host to connect to, default %s\n", wolfSshIp);
|
||||||
printf(" -p <num> port to connect on, default %d\n", wolfSshPort);
|
printf(" -p <num> port to connect on, default %d\n", wolfSshPort);
|
||||||
|
|
Loading…
Reference in New Issue