GnuCash c935c2f+
Loading...
Searching...
No Matches
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 <janssens.geert@telenet.be>
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 gnu@gnu.org
22 */
23
39#ifndef KEYRING_H_
40#define KEYRING_H_
41
42#include <glib.h>
43#include <gtk/gtk.h>
44
45
64void 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
111gboolean 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)
Attempt to store a password in some trusted keystore.
Definition gnc-keyring.c:68
gboolean gnc_keyring_get_password(GtkWidget *parent, const gchar *access_method, const gchar *server, guint32 port, const gchar *service, gchar **user, gchar **password)
Attempt to retrieve a password to connect to a remote service.