Add `gnutls/dtls.h' to the distribution.
[gnutls.git] / lib / gnutls_global.h
blobdb2b1b1c2ceabf7bb423e9ec79ae167a0a4e2663
1 /*
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2009, 2010 Free
3 * Software Foundation, Inc.
5 * Author: Nikos Mavrogiannopoulos
7 * This file is part of GnuTLS.
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.
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.
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
26 #ifndef GNUTLS_GLOBAL_H
27 #define GNUTLS_GLOBAL_H
29 #include <libtasn1.h>
30 #include <gnutls/gnutls.h>
32 int gnutls_is_secure_memory (const void *mem);
34 extern ASN1_TYPE _gnutls_pkix1_asn;
35 extern ASN1_TYPE _gnutls_gnutls_asn;
37 /* removed const from node_asn* to
38 * prevent warnings, since libtasn1 doesn't
39 * use the const keywork in its functions.
41 #define _gnutls_get_gnutls_asn() ((ASN1_TYPE) _gnutls_gnutls_asn)
42 #define _gnutls_get_pkix() ((ASN1_TYPE) _gnutls_pkix1_asn)
44 extern gnutls_log_func _gnutls_log_func;
45 extern int _gnutls_log_level;
46 extern int gnutls_crypto_init (void);
48 #endif