From 7addc67cd3f6a4c0358f70b4fb9906ebcd88b9e3 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 15 Apr 2018 15:40:25 +0200 Subject: Add support for auto-unloading of the master password --- libsylph/masterpassword.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libsylph/masterpassword.h') 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 @@ #include "config.h" #endif +#define MP_RC_OK 0 +#define MP_RC_WRONG_HASH_OR_KEY 1 +#define MP_RC_INVALID_FORMAT 2 /* invalid digest format */ + extern gchar *master_password; +extern gboolean master_password_enabled_on_init; /* m.p. enabled on init? */ void set_master_password(const char *password); gchar *get_master_password(void); void cleanse_buffer(void *buf, size_t len); -- cgit v1.3