1
1

samplesshd: allow overriding KEYS_FOLDER by compiler option

Signed-off-by: Andreas Schneider <mail@cynapses.org>
Этот коммит содержится в:
Bernhard R. Link 2009-10-04 14:25:05 +02:00 коммит произвёл Andreas Schneider
родитель bf376b6d4f
Коммит 60d6954b75

Просмотреть файл

@ -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"))