2 * OpenConnect (SSL + DTLS) VPN client
4 * Copyright © 2008-2012 Intel Corporation.
6 * Author: David Woodhouse <dwmw2@infradead.org>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1, as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to:
20 * Free Software Foundation, Inc.
21 * 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301 USA
25 #ifndef __OPENCONNECT_GNUTLS_H__
26 #define __OPENCONNECT_GNUTLS_H__
28 #include <gnutls/gnutls.h>
29 #include <gnutls/pkcs12.h>
31 #ifndef HAVE_GNUTLS_PKCS12_SIMPLE_PARSE
32 /* If we're using a version of GnuTLS from before this was
33 exported, pull in our local copy. */
34 int gnutls_pkcs12_simple_parse (gnutls_pkcs12_t p12, const char *password,
35 gnutls_x509_privkey_t * key,
36 gnutls_x509_crt_t ** chain,
37 unsigned int * chain_len,
38 gnutls_x509_crt_t ** extra_certs,
39 unsigned int * extra_certs_len,
40 gnutls_x509_crl_t * crl,
43 #endif /* !HAVE_GNUTLS_PKCS12_SIMPLE_PARSE */
45 #endif /* __OPENCONNECT_GNUTLS_H__ */