ReactOS  0.4.15-dev-1054-gd029a62
x509_crl.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
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  * This file is part of mbed TLS (https://tls.mbed.org)
50  */
51 #ifndef MBEDTLS_X509_CRL_H
52 #define MBEDTLS_X509_CRL_H
53 
54 #if !defined(MBEDTLS_CONFIG_FILE)
55 #include "config.h"
56 #else
57 #include MBEDTLS_CONFIG_FILE
58 #endif
59 
60 #include "x509.h"
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
79 typedef struct mbedtls_x509_crl_entry
80 {
82 
84 
86 
88 
90 }
92 
97 typedef struct mbedtls_x509_crl
98 {
102  int version;
111 
115 
120  void *sig_opts;
123 }
125 
137  const unsigned char *buf, size_t buflen );
150 int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
151 
152 #if defined(MBEDTLS_FS_IO)
153 
163 int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
164 #endif /* MBEDTLS_FS_IO */
165 
177 int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
178  const mbedtls_x509_crl *crl );
179 
186 
193 
194 /* \} name */
195 /* \} addtogroup x509_module */
196 
197 #ifdef __cplusplus
198 }
199 #endif
200 
201 #endif /* mbedtls_x509_crl.h */
Definition: x509_crl.h:79
static const BYTE crl[]
Definition: message.c:864
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
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.
struct mbedtls_x509_crl mbedtls_x509_crl
mbedtls_x509_buf serial
Definition: x509_crl.h:83
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:105
mbedtls_pk_type_t
Public key types.
Definition: pk.h:103
struct mbedtls_x509_crl * next
Definition: x509_crl.h:122
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 sig
Definition: x509_crl.h:117
mbedtls_x509_name issuer
Definition: x509_crl.h:107
mbedtls_x509_crl_entry entry
Definition: x509_crl.h:112
mbedtls_md_type_t sig_md
Definition: x509_crl.h:118
mbedtls_x509_time this_update
Definition: x509_crl.h:109
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
struct sock * chain
Definition: tcpcore.h:1164
mbedtls_x509_buf raw
Definition: x509_crl.h:81
mbedtls_x509_time next_update
Definition: x509_crl.h:110
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.
mbedtls_x509_buf raw
Definition: x509_crl.h:99
GLsizeiptr size
Definition: glext.h:5919
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
void * sig_opts
Definition: x509_crl.h:120
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
X.509 generic defines and structures.
mbedtls_x509_buf sig_oid
Definition: x509_crl.h:103
mbedtls_x509_buf tbs
Definition: x509_crl.h:100
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:116
mbedtls_pk_type_t sig_pk
Definition: x509_crl.h:119
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:114
mbedtls_x509_time revocation_date
Definition: x509_crl.h:85
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:89
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:87
mbedtls_md_type_t
Enumeration of supported message digests.
Definition: md.h:83