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/>
24 #include <gnutls/abstract.h>
26 int _gnutls_x509_cert_verify_peers (gnutls_session_t session
,
27 unsigned int *status
);
29 #define PEM_CERT_SEP2 "-----BEGIN X509 CERTIFICATE"
30 #define PEM_CERT_SEP "-----BEGIN CERTIFICATE"
32 #define PEM_CRL_SEP "-----BEGIN X509 CRL"
34 #define PEM_KEY_RSA_SEP "-----BEGIN RSA"
35 #define PEM_KEY_DSA_SEP "-----BEGIN DSA"
37 int _gnutls_check_key_usage (const gnutls_pcert_st
* cert
,
38 gnutls_kx_algorithm_t alg
);
40 int _gnutls_x509_raw_privkey_to_gkey (gnutls_privkey_t
* privkey
,
41 const gnutls_datum_t
* raw_key
,
42 gnutls_x509_crt_fmt_t type
);