add simple getPassPhrase()
authorroot <devnull@localhost>
Tue, 20 Feb 1996 15:07:02 +0000 (15:07 +0000)
committerroot <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

index 33331e4..be62737 100644 (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)
 {