From c94746703a3e0b59372b3bbf9355112c6a85d2dc Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 14 Mar 2018 12:18:31 +0100 Subject: Implement master password encrypted string tags --- libsylph/masterpassword.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libsylph/masterpassword.h') 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 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2006 Hiroyuki Yamamoto + * Copyright (C) 1999-2018 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -28,9 +28,10 @@ extern gchar *master_password; void set_master_password(const char *password); gchar *get_master_password(void); void unload_master_password(void); +gint mpes_string_prefix(const gchar *str); gboolean master_password_active(void); -gchar *decrypt_with_master_password(gchar *str); -gchar *encrypt_with_master_password(gchar *str); +gchar *decrypt_with_master_password(const gchar *str); +gchar *encrypt_with_master_password(const gchar *str); #if USE_SSL gint set_master_password_interactively(guint max_attempts); -- cgit v1.3