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
Этот коммит содержится в:
родитель
29997022c8
Коммит
0d6e3c1790
@ -457,16 +457,11 @@ int read_dsa_privatekey(FILE *fp, gcry_sexp_t *r, int cb(char *, int , int , cha
|
|||||||
}
|
}
|
||||||
#endif /* GCRYPT */
|
#endif /* GCRYPT */
|
||||||
|
|
||||||
|
|
||||||
|
/* completely deprecated */
|
||||||
static int default_get_password(char *buf, int size,int rwflag, char *descr){
|
static int default_get_password(char *buf, int size,int rwflag, char *descr){
|
||||||
char *pass;
|
memset(buf,0,size);
|
||||||
char buffer[256];
|
return 0;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* in case the passphrase has been given in parameter */
|
/* in case the passphrase has been given in parameter */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user