aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth1.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2005-10-04 22:11:19 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2005-10-04 22:11:19 +0000
commit5f7c84f900b81e3bbff55378f8170ddf150daf9c (patch)
tree2076a6416e087eb5870c2217873ae76e85451f6b /libssh/auth1.c
parentc0525750fd090bca0f1ab1884cc26ecd227addb7 (diff)
downloadlibssh-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c
index 65fc9058..40cccda1 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);