GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-keyring.h
Go to the documentation of this file.
1 /*
2  * gnc-keyring.h -- utility functions to store and retrieve passwords.
3  *
4  * Copyright (C) 2010 Geert Janssens <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA [email protected]
22  */
23 
39 #ifndef KEYRING_H_
40 #define KEYRING_H_
41 
42 #include <glib.h>
43 #include <gtk/gtk.h>
44 
45 
64 void gnc_keyring_set_password ( const gchar *access_method,
65  const gchar *server,
66  guint32 port,
67  const gchar *service,
68  const gchar *user,
69  const gchar* password );
70 
111 gboolean gnc_keyring_get_password ( GtkWidget *parent,
112  const gchar *access_method,
113  const gchar *server,
114  guint32 port,
115  const gchar *service,
116  gchar **user,
117  gchar **password );
118 
119 /* @} */
120 /* @} */
121 
122 
123 #endif /* KEYRING_H_ */
void gnc_keyring_set_password(const gchar *access_method, const gchar *server, guint32 port, const gchar *service, const gchar *user, const gchar *password)
Definition: gnc-keyring.c:67
gboolean gnc_keyring_get_password(GtkWidget *parent, const gchar *access_method, const gchar *server, guint32 port, const gchar *service, gchar **user, gchar **password)
Definition: gnc-keyring.c:146