From 5aa11b712a9cf6279c41e6de93ee4d1355a0930b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 5 Dec 2015 00:53:23 +0100 Subject: accept flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/passphrase.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/passphrase.c') diff --git a/src/passphrase.c b/src/passphrase.c index ec21aad..9c42c0f 100644 --- a/src/passphrase.c +++ b/src/passphrase.c @@ -129,7 +129,13 @@ char* passphrase_read(void) * Reads the passphrase from stdin * * @param fdin File descriptor for input - * @param flags Settings + * @param flags Settings, a combination of the constants: + * * PASSPHRASE_READ_EXISTING + * * PASSPHRASE_READ_NEW + * * PASSPHRASE_READ_SCREEN_FREE + * * PASSPHRASE_READ_BELOW_FREE + * Invalid input is ignored, to make use the + * application will work. * @return The passphrase, should be wiped and `free`:ed, `NULL` on error */ char* passphrase_read2(int fdin, int flags) -- cgit v1.2.3-70-g09d2