|
Packit |
b00eeb |
/*
|
|
Packit |
b00eeb |
* gnome-keyring
|
|
Packit |
b00eeb |
*
|
|
Packit |
b00eeb |
* Copyright (C) 2010 Collabora Ltd.
|
|
Packit |
b00eeb |
*
|
|
Packit |
b00eeb |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
b00eeb |
* it under the terms of the GNU Lesser General Public License as
|
|
Packit |
b00eeb |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
b00eeb |
* the License, or (at your option) any later version.
|
|
Packit |
b00eeb |
*
|
|
Packit |
b00eeb |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
b00eeb |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
b00eeb |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
b00eeb |
* Lesser General Public License for more details.
|
|
Packit |
b00eeb |
*
|
|
Packit |
b00eeb |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
b00eeb |
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
b00eeb |
*
|
|
Packit |
b00eeb |
* Author: Stef Walter <stefw@collabora.co.uk>
|
|
Packit |
b00eeb |
*/
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
|
|
Packit |
b00eeb |
#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
|
|
Packit |
b00eeb |
#endif
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
#ifndef GCR_LIBRARY_H_
|
|
Packit |
b00eeb |
#define GCR_LIBRARY_H_
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
#include "gcr-types.h"
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
#include <glib.h>
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
void gcr_pkcs11_initialize_async (GCancellable *cancellable,
|
|
Packit |
b00eeb |
GAsyncReadyCallback callback,
|
|
Packit |
b00eeb |
gpointer user_data);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
gboolean gcr_pkcs11_initialize_finish (GAsyncResult *result,
|
|
Packit |
b00eeb |
GError **error);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
gboolean gcr_pkcs11_initialize (GCancellable *cancellable,
|
|
Packit |
b00eeb |
GError **error);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
GList* gcr_pkcs11_get_modules (void);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
void gcr_pkcs11_set_modules (GList *modules);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
void gcr_pkcs11_add_module (GckModule *module);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
gboolean gcr_pkcs11_add_module_from_file (const gchar *module_path,
|
|
Packit |
b00eeb |
gpointer unused,
|
|
Packit |
b00eeb |
GError **error);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
GList* gcr_pkcs11_get_trust_lookup_slots (void);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
GckSlot* gcr_pkcs11_get_trust_store_slot (void);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
const gchar** gcr_pkcs11_get_trust_lookup_uris (void);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
void gcr_pkcs11_set_trust_lookup_uris (const gchar **pkcs11_uris);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
const gchar* gcr_pkcs11_get_trust_store_uri (void);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
void gcr_pkcs11_set_trust_store_uri (const gchar *pkcs11_uri);
|
|
Packit |
b00eeb |
|
|
Packit |
b00eeb |
#endif /* GCR_LIBRARY_H_ */
|