|
Packit Service |
4684c1 |
/*
|
|
Packit Service |
4684c1 |
* Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* Author: Simon Josefsson
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* This file is part of GnuTLS.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* The GnuTLS is free software; you can redistribute it and/or
|
|
Packit Service |
4684c1 |
* modify it under the terms of the GNU Lesser General Public License
|
|
Packit Service |
4684c1 |
* as published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
4684c1 |
* the License, or (at your option) any later version.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* This library is distributed in the hope that it will be useful, but
|
|
Packit Service |
4684c1 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
* Lesser General Public License for more details.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
4684c1 |
* along with this program. If not, see <https://www.gnu.org/licenses/>
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
*/
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#ifndef GNUTLS_LIB_X509_VERIFY_HIGH_H
|
|
Packit Service |
4684c1 |
#define GNUTLS_LIB_X509_VERIFY_HIGH_H
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
struct gnutls_x509_trust_list_st {
|
|
Packit Service |
4684c1 |
unsigned int size;
|
|
Packit Service |
4684c1 |
struct node_st *node;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
/* holds a sequence of the RDNs of the CAs above.
|
|
Packit Service |
4684c1 |
* This is used when using the trust list in TLS.
|
|
Packit Service |
4684c1 |
*/
|
|
Packit Service |
4684c1 |
gnutls_datum_t x509_rdn_sequence;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
gnutls_x509_crt_t *blacklisted;
|
|
Packit Service |
4684c1 |
unsigned int blacklisted_size;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
/* certificates that will be deallocated when this struct
|
|
Packit Service |
4684c1 |
* will be deinitialized */
|
|
Packit Service |
4684c1 |
gnutls_x509_crt_t *keep_certs;
|
|
Packit Service |
4684c1 |
unsigned int keep_certs_size;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
char* pkcs11_token;
|
|
Packit Service |
4684c1 |
};
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
int _gnutls_trustlist_inlist(gnutls_x509_trust_list_t list,
|
|
Packit Service |
4684c1 |
gnutls_x509_crt_t cert);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#endif /* GNUTLS_LIB_X509_VERIFY_HIGH_H */
|