diff options
| author | Simeon Simeonov | 2018-03-09 14:02:34 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-03-09 14:02:34 +0100 |
| commit | f1babd48f5259186cd1233288992f942d4b5b0bb (patch) | |
| tree | 54d740ef2201fceb3e54fac31272e80e65079ec7 /libsylph/masterpassword.h | |
| parent | 57944f6147f077ccf4d84b9d2659f4e8645e8858 (diff) | |
Complete rewrite of the master password implementation
Diffstat (limited to 'libsylph/masterpassword.h')
| -rw-r--r-- | libsylph/masterpassword.h | 6 |
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 @@ | |||
| 27 | extern gchar *master_password; | 27 | extern gchar *master_password; |
| 28 | void set_master_password(const char *password); | 28 | void set_master_password(const char *password); |
| 29 | gchar *get_master_password(void); | 29 | gchar *get_master_password(void); |
| 30 | void unload_master_password(void); | ||
| 31 | gboolean master_password_active(void); | ||
| 32 | gchar *decrypt_with_master_password(gchar *str); | ||
| 33 | gchar *encrypt_with_master_password(gchar *str); | ||
| 30 | 34 | ||
| 31 | #if USE_SSL | 35 | #if USE_SSL |
| 32 | |||
| 33 | gint set_master_password_interactively(guint max_attempts); | 36 | gint set_master_password_interactively(guint max_attempts); |
| 34 | gint check_master_password_interactively(guint max_attempts); | 37 | gint 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__ */ |
