From 57944f6147f077ccf4d84b9d2659f4e8645e8858 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 8 Mar 2018 15:01:45 +0100 Subject: Reastructure master password functionality --- libsylph/masterpassword.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 libsylph/masterpassword.h (limited to 'libsylph/masterpassword.h') diff --git a/libsylph/masterpassword.h b/libsylph/masterpassword.h new file mode 100644 index 0000000..b2798ce --- /dev/null +++ b/libsylph/masterpassword.h @@ -0,0 +1,38 @@ +/* + * LibSylph -- E-Mail client library + * Copyright (C) 1999-2006 Hiroyuki Yamamoto + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __MASTERPASSWORD_H__ +#define __MASTERPASSWORD_H__ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +extern gchar *master_password; +void set_master_password(const char *password); +gchar *get_master_password(void); + +#if USE_SSL + +gint set_master_password_interactively(guint max_attempts); +gint check_master_password_interactively(guint max_attempts); + +#endif /* USE_SSL */ + +#endif /* __MASTERPASSWORD_H__ */ -- cgit v1.3