ReactOS 0.4.16-dev-306-g647d351
x509_crl.h
Go to the documentation of this file.
1
6/*
7 * Copyright The Mbed TLS Contributors
8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 *
10 * This file is provided under the Apache License 2.0, or the
11 * GNU General Public License v2.0 or later.
12 *
13 * **********
14 * Apache License 2.0:
15 *
16 * Licensed under the Apache License, Version 2.0 (the "License"); you may
17 * not use this file except in compliance with the License.
18 * You may obtain a copy of the License at
19 *
20 * http://www.apache.org/licenses/LICENSE-2.0
21 *
22 * Unless required by applicable law or agreed to in writing, software
23 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
24 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 * See the License for the specific language governing permissions and
26 * limitations under the License.
27 *
28 * **********
29 *
30 * **********
31 * GNU General Public License v2.0 or later:
32 *
33 * This program is free software; you can redistribute it and/or modify
34 * it under the terms of the GNU General Public License as published by
35 * the Free Software Foundation; either version 2 of the License, or
36 * (at your option) any later version.
37 *
38 * This program is distributed in the hope that it will be useful,
39 * but WITHOUT ANY WARRANTY; without even the implied warranty of
40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 * GNU General Public License for more details.
42 *
43 * You should have received a copy of the GNU General Public License along
44 * with this program; if not, write to the Free Software Foundation, Inc.,
45 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
46 *
47 * **********
48 */
49#ifndef MBEDTLS_X509_CRL_H
50#define MBEDTLS_X509_CRL_H
51
52#if !defined(MBEDTLS_CONFIG_FILE)
53#include "config.h"
54#else
55#include MBEDTLS_CONFIG_FILE
56#endif
57
58#include "x509.h"
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
78{
80
82
84
86
88}
90
95typedef struct mbedtls_x509_crl
96{
109
113
118 void *sig_opts;
121}
123
135 const unsigned char *buf, size_t buflen );
148int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
149
150#if defined(MBEDTLS_FS_IO)
161int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
162#endif /* MBEDTLS_FS_IO */
163
175int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
176 const mbedtls_x509_crl *crl );
177
184
191
192/* \} name */
193/* \} addtogroup x509_module */
194
195#ifdef __cplusplus
196}
197#endif
198
199#endif /* mbedtls_x509_crl.h */
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:103
int mbedtls_x509_crl_parse_der(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen)
Parse a DER-encoded CRL and append it to the chained list.
mbedtls_x509_buf serial
Definition: x509_crl.h:81
int mbedtls_x509_crl_info(char *buf, size_t size, const char *prefix, const mbedtls_x509_crl *crl)
Returns an informational string about the CRL.
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:85
mbedtls_x509_time this_update
Definition: x509_crl.h:107
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:112
struct mbedtls_x509_crl * next
Definition: x509_crl.h:120
mbedtls_x509_buf raw
Definition: x509_crl.h:97
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
mbedtls_md_type_t sig_md
Definition: x509_crl.h:116
mbedtls_x509_time next_update
Definition: x509_crl.h:108
mbedtls_x509_crl_entry entry
Definition: x509_crl.h:110
mbedtls_pk_type_t sig_pk
Definition: x509_crl.h:117
mbedtls_x509_buf sig
Definition: x509_crl.h:115
mbedtls_x509_buf raw
Definition: x509_crl.h:79
mbedtls_x509_name issuer
Definition: x509_crl.h:105
mbedtls_x509_buf tbs
Definition: x509_crl.h:98
mbedtls_x509_time revocation_date
Definition: x509_crl.h:83
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:87
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:114
mbedtls_x509_buf sig_oid
Definition: x509_crl.h:101
void * sig_opts
Definition: x509_crl.h:118
int mbedtls_x509_crl_parse(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen)
Parse one or more CRLs and append them to the chained list.
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
mbedtls_md_type_t
Supported message digests.
Definition: md.h:83
static const BYTE crl[]
Definition: message.c:864
mbedtls_pk_type_t
Public key types.
Definition: pk.h:103
Definition: x509_crl.h:78
struct sock * chain
Definition: tcpcore.h:1
X.509 generic defines and structures.