mbed TLS v3.1.0
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
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License"); you may
11  * not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 #ifndef MBEDTLS_X509_CRL_H
23 #define MBEDTLS_X509_CRL_H
24 #include "mbedtls/private_access.h"
25 
26 #include "mbedtls/build_info.h"
27 
28 #include "mbedtls/x509.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
51 typedef struct mbedtls_x509_crl_entry
52 {
65 
70 }
72 
77 typedef struct mbedtls_x509_crl
78 {
82  int version;
91 
95 
100  void *MBEDTLS_PRIVATE(sig_opts);
106 }
108 
120  const unsigned char *buf, size_t buflen );
133 int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
134 
135 #if defined(MBEDTLS_FS_IO)
136 
146 int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
147 #endif /* MBEDTLS_FS_IO */
148 
149 #if !defined(MBEDTLS_X509_REMOVE_INFO)
150 
161 int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
162  const mbedtls_x509_crl *crl );
163 #endif /* !MBEDTLS_X509_REMOVE_INFO */
164 
171 
178 
179 /* \} name */
180 /* \} addtogroup x509_module */
181 
182 #ifdef __cplusplus
183 }
184 #endif
185 
186 #endif /* mbedtls_x509_crl.h */
Definition: x509_crl.h:51
struct mbedtls_x509_crl mbedtls_x509_crl
mbedtls_x509_buf serial
Definition: x509_crl.h:56
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:85
#define MBEDTLS_PRIVATE(member)
mbedtls_pk_type_t
Public key types.
Definition: pk.h:90
struct mbedtls_x509_crl * next
Definition: x509_crl.h:105
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_name issuer
Definition: x509_crl.h:87
int mbedtls_x509_crl_parse_file(mbedtls_x509_crl *chain, const char *path)
Load one or more CRLs and append them to the chained list.
mbedtls_x509_crl_entry entry
Definition: x509_crl.h:92
mbedtls_x509_time this_update
Definition: x509_crl.h:89
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
mbedtls_x509_buf raw
Definition: x509_crl.h:54
mbedtls_x509_time next_update
Definition: x509_crl.h:90
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:79
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
Macro wrapper for struct's memebrs.
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:83
Build-time configuration info.
mbedtls_x509_buf tbs
Definition: x509_crl.h:80
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:94
mbedtls_x509_time revocation_date
Definition: x509_crl.h:58
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:69
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:64
mbedtls_md_type_t
Supported message digests.
Definition: md.h:55