|
Packit Service |
f02b19 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
Packit Service |
f02b19 |
/* egg-openssl.h - OpenSSL compatibility functionality
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
Copyright (C) 2007 Stefan Walter
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
The Gnome Keyring Library is free software; you can redistribute it and/or
|
|
Packit Service |
f02b19 |
modify it under the terms of the GNU Library General Public License as
|
|
Packit Service |
f02b19 |
published by the Free Software Foundation; either version 2 of the
|
|
Packit Service |
f02b19 |
License, or (at your option) any later version.
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
The Gnome Keyring Library is distributed in the hope that it will be useful,
|
|
Packit Service |
f02b19 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
f02b19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
f02b19 |
Library General Public License for more details.
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
You should have received a copy of the GNU Library General Public
|
|
Packit Service |
f02b19 |
License along with the Gnome Library; see the file COPYING.LIB. If not,
|
|
Packit Service |
f02b19 |
see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
Author: Stef Walter <stef@memberwebs.com>
|
|
Packit Service |
f02b19 |
*/
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#ifndef EGG_OPENSSL_H_
|
|
Packit Service |
f02b19 |
#define EGG_OPENSSL_H_
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#include <glib.h>
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
int egg_openssl_parse_algo (const gchar *name, int *mode);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
guchar * egg_openssl_encrypt_block (const gchar *dekinfo,
|
|
Packit Service |
f02b19 |
const gchar *password,
|
|
Packit Service |
f02b19 |
gssize n_password,
|
|
Packit Service |
f02b19 |
GBytes *data,
|
|
Packit Service |
f02b19 |
gsize *n_encrypted);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
guchar * egg_openssl_decrypt_block (const gchar *dekinfo,
|
|
Packit Service |
f02b19 |
const gchar *password,
|
|
Packit Service |
f02b19 |
gssize n_password,
|
|
Packit Service |
f02b19 |
GBytes *data,
|
|
Packit Service |
f02b19 |
gsize *n_decrypted);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
const gchar* egg_openssl_get_dekinfo (GHashTable *headers);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
const gchar* egg_openssl_prep_dekinfo (GHashTable *headers);
|
|
Packit Service |
f02b19 |
|
|
Packit Service |
f02b19 |
#endif /* EGG_OPENSSL_H_ */
|