aboutsummaryrefslogtreecommitdiff
path: root/samplesshd.c
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2009-10-04 14:25:05 +0200
committerAndreas Schneider <mail@cynapses.org>2009-10-05 00:05:09 +0200
commit60d6954b7560df62634b305fec65dffbc98ff0b8 (patch)
treec398d4f908d1cf502d315cc4a058341a29b7a698 /samplesshd.c
parentbf376b6d4fd4dad7ced0e49bedc76cc2a0d797f1 (diff)
downloadlibssh-60d6954b7560df62634b305fec65dffbc98ff0b8.tar.gz
libssh-60d6954b7560df62634b305fec65dffbc98ff0b8.tar.xz
libssh-60d6954b7560df62634b305fec65dffbc98ff0b8.zip
samplesshd: allow overriding KEYS_FOLDER by compiler option
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'samplesshd.c')
-rw-r--r--samplesshd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/samplesshd.c b/samplesshd.c
index fa97fab..9cd9449 100644
--- a/samplesshd.c
+++ b/samplesshd.c
@@ -25,11 +25,13 @@ MA 02111-1307, USA. */
#include <unistd.h>
#include <string.h>
#include <stdio.h>
+#ifndef KEYS_FOLDER
#ifdef _WIN32
#define KEYS_FOLDER
#else
#define KEYS_FOLDER "/etc/ssh/"
#endif
+#endif
static int auth_password(char *user, char *password){
if(strcmp(user,"aris"))