diff options
| author | Simeon Simeonov | 2018-03-06 10:46:02 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-03-06 10:46:02 +0100 |
| commit | 8c56039d67bd910a334b2ddd009c6df4bb01cc8b (patch) | |
| tree | d46d42e6e46a3be8fce101cee7fab70747dda462 /libsylph/ssl.h | |
| parent | dd8e01ae9524d8109ce66b9294c64f50159d9672 (diff) | |
Add the core master-password functionality in libsylph/ssl.[c,h]
Diffstat (limited to 'libsylph/ssl.h')
| -rw-r--r-- | libsylph/ssl.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/libsylph/ssl.h b/libsylph/ssl.h index 94ab4b7..6338911 100644 --- a/libsylph/ssl.h +++ b/libsylph/ssl.h | |||
| @@ -68,17 +68,23 @@ void ssl_set_verify_func (SSLVerifyFunc func); | |||
| 68 | 68 | ||
| 69 | /* master password related code */ | 69 | /* master password related code */ |
| 70 | gint encrypt_data(gchar **encrypted, | 70 | gint encrypt_data(gchar **encrypted, |
| 71 | gint *length_encrypted, | 71 | gint *length_encrypted, |
| 72 | const gchar *data, | 72 | const gchar *data, |
| 73 | const gchar *passphrase, | 73 | const gchar *passphrase, |
| 74 | gint length_data, | 74 | gint length_data, |
| 75 | guint min_data_length, | 75 | guint min_data_length, |
| 76 | gboolean rnd_salt); | 76 | gboolean rnd_salt); |
| 77 | 77 | ||
| 78 | gint decrypt_data(gchar **decrypted, | 78 | gint decrypt_data(gchar **decrypted, |
| 79 | const gchar *data, | 79 | const gchar *data, |
| 80 | const gchar *passphrase, | 80 | const gchar *passphrase, |
| 81 | gint length_data); | 81 | gint length_data); |
| 82 | |||
| 83 | gint generate_password_hash(gchar **password_hash, | ||
| 84 | const gchar *password, | ||
| 85 | const guchar *salt); | ||
| 86 | |||
| 87 | gint check_password(const gchar *password, const gchar *password_hash); | ||
| 82 | /* ---------------------------- */ | 88 | /* ---------------------------- */ |
| 83 | #endif /* USE_SSL */ | 89 | #endif /* USE_SSL */ |
| 84 | 90 | ||
