00001 /* 00002 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation 00003 * 00004 * Author: Nikos Mavrogiannopoulos 00005 * 00006 * This file is part of GNUTLS. 00007 * 00008 * The GNUTLS library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation; either version 2.1 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00021 * USA 00022 * 00023 */ 00024 00025 #include <libtasn1.h> 00026 00027 int MHD__gnutls_x509_cert_verify_peers (MHD_gtls_session_t session, 00028 unsigned int *status); 00029 00030 #define PEM_CERT_SEP2 "-----BEGIN X509 CERTIFICATE" 00031 #define PEM_CERT_SEP "-----BEGIN CERTIFICATE" 00032 00033 #define PEM_CRL_SEP "-----BEGIN X509 CRL" 00034 00035 #define PEM_KEY_RSA_SEP "-----BEGIN RSA" 00036 #define PEM_KEY_DSA_SEP "-----BEGIN DSA" 00037 00038 int MHD__gnutls_check_key_usage (const MHD_gnutls_cert * cert, 00039 enum MHD_GNUTLS_KeyExchangeAlgorithm alg); 00040 00041 int MHD__gnutls_x509_read_rsa_params (opaque * der, int dersize, 00042 mpi_t * params); 00043 int MHD__gnutls_x509_read_dsa_pubkey (opaque * der, int dersize, 00044 mpi_t * params); 00045 00046 int MHD__gnutls_x509_raw_privkey_to_gkey (MHD_gnutls_privkey * privkey, 00047 const MHD_gnutls_datum_t * raw_key, 00048 MHD_gnutls_x509_crt_fmt_t type); 00049 int MHD__gnutls_x509_privkey_to_gkey (MHD_gnutls_privkey * privkey, 00050 MHD_gnutls_x509_privkey_t);