Mbed TLS v4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 #ifndef MBEDTLS_X509_CRL_H
11 #define MBEDTLS_X509_CRL_H
12 #include "mbedtls/private_access.h"
13 
14 #include "mbedtls/build_info.h"
15 
16 #include "mbedtls/x509.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
39 typedef struct mbedtls_x509_crl_entry {
52 
57 }
59 
64 typedef struct mbedtls_x509_crl {
68  int version;
77 
81 
82  mbedtls_x509_buf MBEDTLS_PRIVATE(sig_oid2);
83  mbedtls_x509_buf MBEDTLS_PRIVATE(sig);
84  mbedtls_md_type_t MBEDTLS_PRIVATE(sig_md);
85  mbedtls_pk_sigalg_t MBEDTLS_PRIVATE(sig_pk);
91 }
93 
108  const unsigned char *buf, size_t buflen);
124 int mbedtls_x509_crl_parse(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen);
125 
126 #if defined(MBEDTLS_FS_IO)
127 
140 int mbedtls_x509_crl_parse_file(mbedtls_x509_crl *chain, const char *path);
141 #endif /* MBEDTLS_FS_IO */
142 
143 #if !defined(MBEDTLS_X509_REMOVE_INFO)
144 
155 int mbedtls_x509_crl_info(char *buf, size_t size, const char *prefix,
156  const mbedtls_x509_crl *crl);
157 #endif /* !MBEDTLS_X509_REMOVE_INFO */
158 
165 
172 
176 #ifdef __cplusplus
177 }
178 #endif
179 
180 #endif /* mbedtls_x509_crl.h */
Definition: x509_crl.h:39
struct mbedtls_x509_crl mbedtls_x509_crl
mbedtls_x509_buf serial
Definition: x509_crl.h:43
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:71
struct mbedtls_x509_crl * next
Definition: x509_crl.h:90
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:73
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:78
mbedtls_x509_time this_update
Definition: x509_crl.h:75
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
mbedtls_x509_buf raw
Definition: x509_crl.h:41
mbedtls_x509_time next_update
Definition: x509_crl.h:76
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:65
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
Build-time configuration info.
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:69
mbedtls_x509_buf tbs
Definition: x509_crl.h:66
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:80
mbedtls_x509_time revocation_date
Definition: x509_crl.h:45
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:56
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:51
mbedtls_md_type_t
Supported message digests.
Definition: md.h:50
mbedtls_pk_sigalg_t
Definition: pk.h:53