#include <glib.h>
#include <gio/gio.h>
Go to the source code of this file.
G_BEGIN_DECLS gboolean ev_keyring_is_available |
( |
void |
) | |
|
gchar* ev_keyring_lookup_password |
( |
const gchar * |
uri) | |
|
Definition at line 53 of file ev-keyring.c.
56 g_return_val_if_fail (uri != NULL, NULL);
58 return secret_password_lookup_sync (EV_DOCUMENT_PASSWORD_SCHEMA,
60 "type",
"document_password",
gboolean ev_keyring_save_password |
( |
const gchar * |
uri, |
|
|
const gchar * |
password, |
|
|
GPasswordSave |
flags |
|
) |
| |
Definition at line 69 of file ev-keyring.c.
79 g_return_val_if_fail (uri != NULL,
FALSE);
81 if (flags == G_PASSWORD_SAVE_NEVER)
84 keyring = (flags == G_PASSWORD_SAVE_FOR_SESSION) ? SECRET_COLLECTION_SESSION : NULL;
85 unescaped_uri = g_uri_unescape_string (uri, NULL);
86 name = g_strdup_printf (
_(
"Password for document %s"), unescaped_uri);
87 g_free (unescaped_uri);
89 retval = secret_password_store_sync (EV_DOCUMENT_PASSWORD_SCHEMA, keyring,
90 name, password, NULL, NULL,
91 "type",
"document_password",