Blame lib/x509.h

Packit aea12f
/*
Packit aea12f
 * Copyright (C) 2000-2012 Free Software Foundation, Inc.
Packit aea12f
 *
Packit aea12f
 * Author: Nikos Mavrogiannopoulos
Packit aea12f
 *
Packit aea12f
 * This file is part of GnuTLS.
Packit aea12f
 *
Packit aea12f
 * The GnuTLS is free software; you can redistribute it and/or
Packit aea12f
 * modify it under the terms of the GNU Lesser General Public License
Packit aea12f
 * as published by the Free Software Foundation; either version 2.1 of
Packit aea12f
 * the License, or (at your option) any later version.
Packit aea12f
 *
Packit aea12f
 * This library is distributed in the hope that it will be useful, but
Packit aea12f
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit aea12f
 * Lesser General Public License for more details.
Packit aea12f
 *
Packit aea12f
 * You should have received a copy of the GNU Lesser General Public License
Packit aea12f
 * along with this program.  If not, see <https://www.gnu.org/licenses/>
Packit aea12f
 *
Packit aea12f
 */
Packit aea12f
Packit aea12f
#ifndef GNUTLS_LIB_X509_H
Packit aea12f
#define GNUTLS_LIB_X509_H
Packit aea12f
Packit aea12f
#include <libtasn1.h>
Packit aea12f
Packit aea12f
Packit aea12f
int _gnutls_x509_cert_verify_peers(gnutls_session_t session,
Packit aea12f
				   gnutls_typed_vdata_st * data,
Packit aea12f
				   unsigned int elements,
Packit aea12f
				   unsigned int *status);
Packit aea12f
Packit aea12f
#define PEM_CERT_SEP2 "-----BEGIN X509 CERTIFICATE"
Packit aea12f
#define PEM_CERT_SEP "-----BEGIN CERTIFICATE"
Packit aea12f
#define PEM_OCSP_RESPONSE "-----BEGIN OCSP RESPONSE"
Packit aea12f
#define BARE_PEM_OCSP_RESPONSE "OCSP RESPONSE"
Packit aea12f
Packit aea12f
#define PEM_CRL_SEP "-----BEGIN X509 CRL"
Packit aea12f
Packit aea12f
Packit aea12f
int _gnutls_x509_raw_privkey_to_gkey(gnutls_privkey_t * privkey,
Packit aea12f
				     const gnutls_datum_t * raw_key,
Packit aea12f
				     gnutls_x509_crt_fmt_t type);
Packit aea12f
Packit aea12f
#endif /* GNUTLS_LIB_X509_H */