diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-10-04 22:11:19 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-10-04 22:11:19 +0000 |
commit | 5f7c84f900b81e3bbff55378f8170ddf150daf9c (patch) | |
tree | 2076a6416e087eb5870c2217873ae76e85451f6b /libssh/auth1.c | |
parent | c0525750fd090bca0f1ab1884cc26ecd227addb7 (diff) | |
download | libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.tar.gz libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.tar.xz libssh-5f7c84f900b81e3bbff55378f8170ddf150daf9c.zip |
added the gcrypt patch (without gcrypt as default library).
still needs tests.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r-- | libssh/auth1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c index 65fc905..40cccda 100644 --- a/libssh/auth1.c +++ b/libssh/auth1.c @@ -23,6 +23,7 @@ MA 02111-1307, USA. */ #include "libssh/ssh1.h" #include <string.h> #include <netdb.h> +#include <stdlib.h> /* static void burn(char *ptr){ @@ -187,7 +188,7 @@ int ssh_userauth1_password(SSH_SESSION *session,char *username,char *password){ */ password_s=string_new(128); ssh_get_random(password_s->string,128,0); - strcpy(password_s->string,password); + strcpy((char *)password_s->string,password); } packet_clear_out(session); |