diff options
| author | Simeon Simeonov | 2018-03-14 12:18:31 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-03-14 12:18:31 +0100 |
| commit | c94746703a3e0b59372b3bbf9355112c6a85d2dc (patch) | |
| tree | c1248351adf00fdee3b0be4c61c0eac83fffffe6 /libsylph/masterpassword.h | |
| parent | 43cd0bb654ae0225388678aa09798fc94be7a135 (diff) | |
Implement master password encrypted string tags
Diffstat (limited to 'libsylph/masterpassword.h')
| -rw-r--r-- | libsylph/masterpassword.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsylph/masterpassword.h b/libsylph/masterpassword.h index 9d00384..91f3793 100644 --- a/libsylph/masterpassword.h +++ b/libsylph/masterpassword.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * LibSylph -- E-Mail client library | 2 | * LibSylph -- E-Mail client library |
| 3 | * Copyright (C) 1999-2006 Hiroyuki Yamamoto | 3 | * Copyright (C) 1999-2018 Hiroyuki Yamamoto |
| 4 | * | 4 | * |
| 5 | * This library is free software; you can redistribute it and/or | 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public | 6 | * modify it under the terms of the GNU Lesser General Public |
| @@ -28,9 +28,10 @@ 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); | 30 | void unload_master_password(void); |
| 31 | gint mpes_string_prefix(const gchar *str); | ||
| 31 | gboolean master_password_active(void); | 32 | gboolean master_password_active(void); |
| 32 | gchar *decrypt_with_master_password(gchar *str); | 33 | gchar *decrypt_with_master_password(const gchar *str); |
| 33 | gchar *encrypt_with_master_password(gchar *str); | 34 | gchar *encrypt_with_master_password(const gchar *str); |
| 34 | 35 | ||
| 35 | #if USE_SSL | 36 | #if USE_SSL |
| 36 | gint set_master_password_interactively(guint max_attempts); | 37 | gint set_master_password_interactively(guint max_attempts); |
