summaryrefslogtreecommitdiff
path: root/libsylph/masterpassword.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-04-15 15:40:25 +0200
committerSimeon Simeonov2018-04-15 15:40:25 +0200
commit7addc67cd3f6a4c0358f70b4fb9906ebcd88b9e3 (patch)
tree6bdc8ffd8c4e42cf289df1271660172366468743 /libsylph/masterpassword.h
parent46275eef3de4e025b5657e67e142fc58125779be (diff)
Add support for auto-unloading of the master password
Diffstat (limited to 'libsylph/masterpassword.h')
-rw-r--r--libsylph/masterpassword.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsylph/masterpassword.h b/libsylph/masterpassword.h
index cc32358..7254643 100644
--- a/libsylph/masterpassword.h
+++ b/libsylph/masterpassword.h
@@ -24,7 +24,12 @@
24#include "config.h" 24#include "config.h"
25#endif 25#endif
26 26
27#define MP_RC_OK 0
28#define MP_RC_WRONG_HASH_OR_KEY 1
29#define MP_RC_INVALID_FORMAT 2 /* invalid digest format */
30
27extern gchar *master_password; 31extern gchar *master_password;
32extern gboolean master_password_enabled_on_init; /* m.p. enabled on init? */
28void set_master_password(const char *password); 33void set_master_password(const char *password);
29gchar *get_master_password(void); 34gchar *get_master_password(void);
30void cleanse_buffer(void *buf, size_t len); 35void cleanse_buffer(void *buf, size_t len);