diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-07 02:11:40 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-07 02:11:40 +0000 |
commit | c284eb4e38721f567db15bde24ea53822d0cefb4 (patch) | |
tree | d126f1958112b7f8afe9039fa112efbd07f53a86 /samplesshd.c | |
parent | 0d6e3c17903bf370765b24b5f2cfeaf9d5d57e3f (diff) | |
download | libssh-c284eb4e38721f567db15bde24ea53822d0cefb4.tar.gz libssh-c284eb4e38721f567db15bde24ea53822d0cefb4.tar.xz libssh-c284eb4e38721f567db15bde24ea53822d0cefb4.zip |
second part of win32 changes
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@143 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'samplesshd.c')
-rw-r--r-- | samplesshd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/samplesshd.c b/samplesshd.c index fe45562b..f4f0bc12 100644 --- a/samplesshd.c +++ b/samplesshd.c @@ -25,6 +25,11 @@ MA 02111-1307, USA. */ #include <unistd.h> #include <string.h> #include <stdio.h> +#ifdef _WIN32 +#define KEYS_FOLDER +#else +#define KEYS_FOLDER "/etc/ssh/" +#endif int auth_password(char *user, char *password){ if(strcmp(user,"aris")) @@ -114,7 +119,7 @@ int main(int argc, char **argv){ } while(message && !chan); if(!chan){ printf("error : %s\n",ssh_get_error(session)); - ssh_finalize(); + ssh_finalize(); return 1; } do { |