Tizen 2.0 Release
[external/libgnutls26.git] / lib / gnutls_global.h
1 /*
2  * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2009, 2010 Free
3  * Software Foundation, Inc.
4  *
5  * Author: Nikos Mavrogiannopoulos
6  *
7  * This file is part of GnuTLS.
8  *
9  * The GnuTLS is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22  * USA
23  *
24  */
25
26 #ifndef GNUTLS_GLOBAL_H
27 #define GNUTLS_GLOBAL_H
28
29 #include <libtasn1.h>
30 #include <gnutls/gnutls.h>
31
32 int gnutls_is_secure_memory (const void *mem);
33
34 extern ASN1_TYPE _gnutls_pkix1_asn;
35 extern ASN1_TYPE _gnutls_gnutls_asn;
36
37 /* removed const from node_asn* to
38  * prevent warnings, since libtasn1 doesn't
39  * use the const keywork in its functions.
40  */
41 #define _gnutls_get_gnutls_asn() ((ASN1_TYPE) _gnutls_gnutls_asn)
42 #define _gnutls_get_pkix() ((ASN1_TYPE) _gnutls_pkix1_asn)
43
44 extern gnutls_log_func _gnutls_log_func;
45 extern int _gnutls_log_level;
46 extern int gnutls_crypto_init (void);
47
48 #endif