check for scp + no server and have print outs for servers

pull/134/head
Jacob Barthelmeh 2019-01-11 09:48:58 -07:00
parent 39fce973f2
commit 0f77f67bdf
3 changed files with 8 additions and 0 deletions

View File

@ -839,6 +839,8 @@ THREAD_RETURN WOLFSSH_THREAD echoserver_test(void* args)
#endif
#ifndef NO_WOLFSSH_SERVER
echoserver_test(&args);
#else
printf("wolfSSH compiled without server support\n");
#endif
wolfSSH_Cleanup();

View File

@ -735,6 +735,8 @@ THREAD_RETURN WOLFSSH_THREAD server_test(void* args)
#ifndef NO_WOLFSSH_SERVER
server_test(&args);
#else
printf("wolfSSH compiled without server support\n");
#endif
wolfSSH_Cleanup();

View File

@ -56,6 +56,10 @@ extern "C" {
#endif
#endif
#if defined(WOLFSSH_SCP) && defined(NO_WOLFSSH_SERVER)
#error only SCP server side supported
#endif
#ifdef __cplusplus
}
#endif