Mbed TLS v2.28.7
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 
13 #if !defined(MBEDTLS_CONFIG_FILE)
14 #include "mbedtls/config.h"
15 #else
16 #include MBEDTLS_CONFIG_FILE
17 #endif
18 
19 #include "mbedtls/x509.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
38 typedef struct mbedtls_x509_crl_entry {
40 
42 
44 
46 
48 }
50 
55 typedef struct mbedtls_x509_crl {
59  int version;
68 
72 
77  void *sig_opts;
80 }
82 
98  const unsigned char *buf, size_t buflen);
115 int mbedtls_x509_crl_parse(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen);
116 
117 #if defined(MBEDTLS_FS_IO)
132 int mbedtls_x509_crl_parse_file(mbedtls_x509_crl *chain, const char *path);
133 #endif /* MBEDTLS_FS_IO */
134 
146 int mbedtls_x509_crl_info(char *buf, size_t size, const char *prefix,
147  const mbedtls_x509_crl *crl);
148 
155 
162 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif /* mbedtls_x509_crl.h */
Configuration options (set of defines)
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.
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
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
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.
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.
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
mbedtls_md_type_t
Supported message digests.
Definition: md.h:50
mbedtls_pk_type_t
Public key types.
Definition: pk.h:83
Definition: x509_crl.h:38
mbedtls_x509_buf serial
Definition: x509_crl.h:41
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:45
mbedtls_x509_buf raw
Definition: x509_crl.h:39
mbedtls_x509_time revocation_date
Definition: x509_crl.h:43
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:47
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:62
mbedtls_x509_time this_update
Definition: x509_crl.h:66
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:71
struct mbedtls_x509_crl * next
Definition: x509_crl.h:79
mbedtls_x509_buf raw
Definition: x509_crl.h:56
mbedtls_md_type_t sig_md
Definition: x509_crl.h:75
mbedtls_x509_time next_update
Definition: x509_crl.h:67
mbedtls_x509_crl_entry entry
Definition: x509_crl.h:69
mbedtls_pk_type_t sig_pk
Definition: x509_crl.h:76
mbedtls_x509_buf sig
Definition: x509_crl.h:74
mbedtls_x509_name issuer
Definition: x509_crl.h:64
mbedtls_x509_buf tbs
Definition: x509_crl.h:57
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:73
mbedtls_x509_buf sig_oid
Definition: x509_crl.h:60
void * sig_opts
Definition: x509_crl.h:77
X.509 generic defines and structures.