projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac23c2
)
add simple getPassPhrase()
author
root
<devnull@localhost>
Tue, 20 Feb 1996 15:07:02 +0000
(15:07 +0000)
committer
root
<devnull@localhost>
Tue, 20 Feb 1996 15:07:02 +0000
(15:07 +0000)
CVS patchset: 353
CVS date: 1996/02/20 15:07:02
lib/signature.c
patch
|
blob
|
history
diff --git
a/lib/signature.c
b/lib/signature.c
index
33331e4
..
be62737
100644
(file)
--- 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)
{