samplesshd: allow overriding KEYS_FOLDER by compiler option
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Этот коммит содержится в:
родитель
bf376b6d4f
Коммит
60d6954b75
@ -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"))
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user