add simple getPassPhrase()
CVS patchset: 353 CVS date: 1996/02/20 15:07:02
This commit is contained in:
parent
7ac23c2d72
commit
46a977012a
|
@ -71,17 +71,20 @@ void ttycbreak(void)
|
|||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
char *getPassPhrase(char *prompt)
|
||||
{
|
||||
char *pass;
|
||||
|
||||
if (prompt) {
|
||||
puts(prompt);
|
||||
pass = getpass(prompt);
|
||||
} else {
|
||||
pass = getpass("");
|
||||
}
|
||||
|
||||
|
||||
|
||||
return pass;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int makePGPSignature(char *file, int ofd, char *passPhrase)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue