diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-07 01:49:58 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-03-07 01:49:58 +0000 |
commit | 0d6e3c17903bf370765b24b5f2cfeaf9d5d57e3f (patch) | |
tree | f677dbc018eab9ba3035ac0e9b5640beba490f9d | |
parent | 29997022c812a5ac47c1c96cbea4d8cee339b532 (diff) | |
download | libssh-0d6e3c17903bf370765b24b5f2cfeaf9d5d57e3f.tar.gz libssh-0d6e3c17903bf370765b24b5f2cfeaf9d5d57e3f.tar.xz libssh-0d6e3c17903bf370765b24b5f2cfeaf9d5d57e3f.zip |
shrinked the default_get_password function. I hope nobody used it, it
has nothing to do in a ssh library.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@142 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r-- | libssh/keyfiles.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index 4bed7c86..dafeebcd 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -457,16 +457,11 @@ int read_dsa_privatekey(FILE *fp, gcry_sexp_t *r, int cb(char *, int , int , cha } #endif /* GCRYPT */ + +/* completely deprecated */ static int default_get_password(char *buf, int size,int rwflag, char *descr){ - char *pass; - char buffer[256]; - int len; - snprintf(buffer,256,"Please enter passphrase for %s",descr); - pass=getpass(buffer); - snprintf(buf,size,"%s",pass); - len=strlen(buf); - memset(pass,0,strlen(pass)); - return len; + memset(buf,0,size); + return 0; } /* in case the passphrase has been given in parameter */ |