added new functions
[gnutls.git] / lib / gnutls_global.h
blob4be3ca1c6374444ce68a05e941c98b7b7c980c8b
1 /*
2 * Copyright (C) 2000-2012 Free Software Foundation, Inc.
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GnuTLS.
8 * The GnuTLS is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>
23 #ifndef GNUTLS_GLOBAL_H
24 #define GNUTLS_GLOBAL_H
26 #include <libtasn1.h>
27 #include <gnutls/gnutls.h>
29 int gnutls_is_secure_memory (const void *mem);
31 extern ASN1_TYPE _gnutls_pkix1_asn;
32 extern ASN1_TYPE _gnutls_gnutls_asn;
34 /* removed const from node_asn* to
35 * prevent warnings, since libtasn1 doesn't
36 * use the const keywork in its functions.
38 #define _gnutls_get_gnutls_asn() ((ASN1_TYPE) _gnutls_gnutls_asn)
39 #define _gnutls_get_pkix() ((ASN1_TYPE) _gnutls_pkix1_asn)
41 extern gnutls_log_func _gnutls_log_func;
42 extern gnutls_audit_log_func _gnutls_audit_log_func;
43 extern int _gnutls_log_level;
44 extern int gnutls_crypto_init (void);
45 extern void gnutls_crypto_deinit (void);
46 void _gnutls_priority_prefer_aes_gcm(void);
48 #endif