add simple getPassPhrase()

CVS patchset: 353
CVS date: 1996/02/20 15:07:02
This commit is contained in:
root 1996-02-20 15:07:02 +00:00
parent 7ac23c2d72
commit 46a977012a
1 changed files with 7 additions and 4 deletions

View File

@ -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)
{