diff options
| author | Simeon Simeonov | 2018-04-15 15:40:25 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2018-04-15 15:40:25 +0200 |
| commit | 7addc67cd3f6a4c0358f70b4fb9906ebcd88b9e3 (patch) | |
| tree | 6bdc8ffd8c4e42cf289df1271660172366468743 /libsylph/masterpassword.h | |
| parent | 46275eef3de4e025b5657e67e142fc58125779be (diff) | |
Add support for auto-unloading of the master password
Diffstat (limited to 'libsylph/masterpassword.h')
| -rw-r--r-- | libsylph/masterpassword.h | 5 |
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 | |||
| 27 | extern gchar *master_password; | 31 | extern gchar *master_password; |
| 32 | extern gboolean master_password_enabled_on_init; /* m.p. enabled on init? */ | ||
| 28 | void set_master_password(const char *password); | 33 | void set_master_password(const char *password); |
| 29 | gchar *get_master_password(void); | 34 | gchar *get_master_password(void); |
| 30 | void cleanse_buffer(void *buf, size_t len); | 35 | void cleanse_buffer(void *buf, size_t len); |
