mbed TLS v2.6.0
x509_crl.h
Go to the documentation of this file.
1 
25 #ifndef MBEDTLS_X509_CRL_H
26 #define MBEDTLS_X509_CRL_H
27 
28 #if !defined(MBEDTLS_CONFIG_FILE)
29 #include "config.h"
30 #else
31 #include MBEDTLS_CONFIG_FILE
32 #endif
33 
34 #include "x509.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
53 typedef struct mbedtls_x509_crl_entry
54 {
56 
58 
60 
62 
64 }
66 
71 typedef struct mbedtls_x509_crl
72 {
76  int version;
85 
89 
94  void *sig_opts;
97 }
99 
111  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 
137 int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
138 #endif /* MBEDTLS_FS_IO */
139 
151 int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
152  const mbedtls_x509_crl *crl );
153 
160 
167 
168 /* \} name */
169 /* \} addtogroup x509_module */
170 
171 #ifdef __cplusplus
172 }
173 #endif
174 
175 #endif /* mbedtls_x509_crl.h */
Certificate revocation list entry.
Definition: x509_crl.h:53
int version
CRL version (1=v1, 2=v2)
Definition: x509_crl.h:76
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.
Certificate revocation list structure.
Definition: x509_crl.h:71
struct mbedtls_x509_crl mbedtls_x509_crl
Certificate revocation list structure.
mbedtls_x509_buf serial
Definition: x509_crl.h:57
mbedtls_x509_buf issuer_raw
The raw issuer data (DER).
Definition: x509_crl.h:79
mbedtls_pk_type_t
Public key types.
Definition: pk.h:76
Configuration options (set of defines)
struct mbedtls_x509_crl * next
Definition: x509_crl.h:96
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:91
mbedtls_x509_name issuer
The parsed issuer data (named information object).
Definition: x509_crl.h:81
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
The CRL entries containing the certificate revocation times for this CA.
Definition: x509_crl.h:86
Container for a sequence or list of 'named' ASN.1 data items.
Definition: asn1.h:152
mbedtls_md_type_t sig_md
Internal representation of the MD algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:92
mbedtls_x509_time this_update
Definition: x509_crl.h:83
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
Type-length-value structure that allows for ASN1 using DER.
Definition: asn1.h:120
Container for date and time (precision in seconds).
Definition: x509.h:209
mbedtls_x509_buf raw
Definition: x509_crl.h:55
mbedtls_x509_time next_update
Definition: x509_crl.h:84
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
The raw certificate data (DER).
Definition: x509_crl.h:73
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
Certificate revocation list entry.
void * sig_opts
Signature options to be passed to mbedtls_pk_verify_ext(), e.g.
Definition: x509_crl.h:94
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
X.509 generic defines and structures.
mbedtls_x509_buf sig_oid
CRL signature type identifier.
Definition: x509_crl.h:77
mbedtls_x509_buf tbs
The raw certificate body (DER).
Definition: x509_crl.h:74
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:90
mbedtls_pk_type_t sig_pk
Internal representation of the Public Key algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:93
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:88
mbedtls_x509_time revocation_date
Definition: x509_crl.h:59
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:63
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:61
mbedtls_md_type_t
Definition: md.h:41