Added test on DTLS SRTP functions.
[gnutls.git] / lib / gnutls_x509.h
bloba082cfcfcbb3f122b65a37c84155eb21cb78e4d6
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 #include <libtasn1.h>
24 #include <gnutls/abstract.h>
26 int _gnutls_x509_cert_verify_peers (gnutls_session_t session,
27 const char* hostname,
28 unsigned int *status);
30 #define PEM_CERT_SEP2 "-----BEGIN X509 CERTIFICATE"
31 #define PEM_CERT_SEP "-----BEGIN CERTIFICATE"
33 #define PEM_CRL_SEP "-----BEGIN X509 CRL"
35 #define PEM_KEY_RSA_SEP "-----BEGIN RSA"
36 #define PEM_KEY_DSA_SEP "-----BEGIN DSA"
38 int _gnutls_check_key_usage (const gnutls_pcert_st* cert,
39 gnutls_kx_algorithm_t alg);
41 int _gnutls_x509_raw_privkey_to_gkey (gnutls_privkey_t * privkey,
42 const gnutls_datum_t * raw_key,
43 gnutls_x509_crt_fmt_t type);