aboutsummaryrefslogtreecommitdiffstats
path: root/src/passphrase.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-05 00:53:23 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-05 00:53:23 +0100
commit5aa11b712a9cf6279c41e6de93ee4d1355a0930b (patch)
treecd9fae9a0212f125637b1dbb9a9ebf8e0d90e94d /src/passphrase.c
parentaccept input from any fd (diff)
downloadlibpassphrase-5aa11b712a9cf6279c41e6de93ee4d1355a0930b.tar.gz
libpassphrase-5aa11b712a9cf6279c41e6de93ee4d1355a0930b.tar.bz2
libpassphrase-5aa11b712a9cf6279c41e6de93ee4d1355a0930b.tar.xz
accept flags
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/passphrase.c')
-rw-r--r--src/passphrase.c8
1 files changed, 7 insertions, 1 deletions
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)