1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

samplesshd: allow overriding KEYS_FOLDER by compiler option

Signed-off-by: Andreas Schneider <mail@cynapses.org>
This commit is contained in:
Bernhard R. Link
2009-10-04 14:25:05 +02:00
committed by Andreas Schneider
parent bf376b6d4f
commit 60d6954b75

View File

@@ -25,11 +25,13 @@ MA 02111-1307, USA. */
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#ifndef KEYS_FOLDER
#ifdef _WIN32 #ifdef _WIN32
#define KEYS_FOLDER #define KEYS_FOLDER
#else #else
#define KEYS_FOLDER "/etc/ssh/" #define KEYS_FOLDER "/etc/ssh/"
#endif #endif
#endif
static int auth_password(char *user, char *password){ static int auth_password(char *user, char *password){
if(strcmp(user,"aris")) if(strcmp(user,"aris"))