summaryrefslogtreecommitdiff
path: root/libsylph/masterpassword.h
diff options
context:
space:
mode:
authorSimeon Simeonov2018-03-08 15:01:45 +0100
committerSimeon Simeonov2018-03-08 15:01:45 +0100
commit57944f6147f077ccf4d84b9d2659f4e8645e8858 (patch)
treeb5a4f7af257058fb602d36590568ffd06681f6cd /libsylph/masterpassword.h
parent9bcc1f9650eb2d9dff7a78c632dcc14dfcfac9ee (diff)
Reastructure master password functionality
Diffstat (limited to 'libsylph/masterpassword.h')
-rw-r--r--libsylph/masterpassword.h38
1 files changed, 38 insertions, 0 deletions
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 @@
1/*
2 * LibSylph -- E-Mail client library
3 * Copyright (C) 1999-2006 Hiroyuki Yamamoto
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef __MASTERPASSWORD_H__
21#define __MASTERPASSWORD_H__
22
23#ifdef HAVE_CONFIG_H
24#include "config.h"
25#endif
26
27extern gchar *master_password;
28void set_master_password(const char *password);
29gchar *get_master_password(void);
30
31#if USE_SSL
32
33gint set_master_password_interactively(guint max_attempts);
34gint check_master_password_interactively(guint max_attempts);
35
36#endif /* USE_SSL */
37
38#endif /* __MASTERPASSWORD_H__ */