diff options
author | root <devnull@localhost> | 1996-02-20 15:07:02 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-02-20 15:07:02 +0000 |
commit | 46a977012a04bebbf3661223e097783038063b4f (patch) | |
tree | a62473de244162ab05d732d660811df6d083867f /lib/signature.c | |
parent | 7ac23c2d72cc7a8cc9ecab131061af272468f5e8 (diff) | |
download | rpm-46a977012a04bebbf3661223e097783038063b4f.tar.gz rpm-46a977012a04bebbf3661223e097783038063b4f.tar.bz2 rpm-46a977012a04bebbf3661223e097783038063b4f.zip |
add simple getPassPhrase()
CVS patchset: 353
CVS date: 1996/02/20 15:07:02
Diffstat (limited to 'lib/signature.c')
-rw-r--r-- | lib/signature.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/signature.c b/lib/signature.c index 33331e4b6..be62737eb 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -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) { |