summaryrefslogtreecommitdiff
path: root/libsylph/masterpassword.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-03-09 14:02:34 +0100
committerSimeon Simeonov2018-03-09 14:02:34 +0100
commitf1babd48f5259186cd1233288992f942d4b5b0bb (patch)
tree54d740ef2201fceb3e54fac31272e80e65079ec7 /libsylph/masterpassword.h
parent57944f6147f077ccf4d84b9d2659f4e8645e8858 (diff)
Complete rewrite of the master password implementation
Diffstat (limited to 'libsylph/masterpassword.h')
-rw-r--r--libsylph/masterpassword.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsylph/masterpassword.h b/libsylph/masterpassword.h
index b2798ce..9d00384 100644
--- a/libsylph/masterpassword.h
+++ b/libsylph/masterpassword.h
@@ -27,12 +27,14 @@
27extern gchar *master_password; 27extern gchar *master_password;
28void set_master_password(const char *password); 28void set_master_password(const char *password);
29gchar *get_master_password(void); 29gchar *get_master_password(void);
30void unload_master_password(void);
31gboolean master_password_active(void);
32gchar *decrypt_with_master_password(gchar *str);
33gchar *encrypt_with_master_password(gchar *str);
30 34
31#if USE_SSL 35#if USE_SSL
32
33gint set_master_password_interactively(guint max_attempts); 36gint set_master_password_interactively(guint max_attempts);
34gint check_master_password_interactively(guint max_attempts); 37gint check_master_password_interactively(guint max_attempts);
35
36#endif /* USE_SSL */ 38#endif /* USE_SSL */
37 39
38#endif /* __MASTERPASSWORD_H__ */ 40#endif /* __MASTERPASSWORD_H__ */