mbed TLS v2.0.0
x509_crl.h
Go to the documentation of this file.
1 
24 #ifndef MBEDTLS_X509_CRL_H
25 #define MBEDTLS_X509_CRL_H
26 
27 #if !defined(MBEDTLS_CONFIG_FILE)
28 #include "config.h"
29 #else
30 #include MBEDTLS_CONFIG_FILE
31 #endif
32 
33 #include "x509.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
52 typedef struct mbedtls_x509_crl_entry
53 {
55 
57 
59 
61 
63 }
65 
70 typedef struct mbedtls_x509_crl
71 {
75  int version;
84 
88 
93  void *sig_opts;
96 }
98 
109  const unsigned char *buf, size_t buflen );
122 int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
123 
124 #if defined(MBEDTLS_FS_IO)
125 
135 int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
136 #endif /* MBEDTLS_FS_IO */
137 
149 int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
150  const mbedtls_x509_crl *crl );
151 
158 
165 
166 /* \} name */
167 /* \} addtogroup x509_module */
168 
169 #ifdef __cplusplus
170 }
171 #endif
172 
173 #endif /* mbedtls_x509_crl.h */
Certificate revocation list entry.
Definition: x509_crl.h:52
int version
CRL version (1=v1, 2=v2)
Definition: x509_crl.h:75
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:70
struct mbedtls_x509_crl mbedtls_x509_crl
Certificate revocation list structure.
mbedtls_x509_buf serial
Definition: x509_crl.h:56
mbedtls_x509_buf issuer_raw
The raw issuer data (DER).
Definition: x509_crl.h:78
mbedtls_pk_type_t
Public key types.
Definition: pk.h:71
Compatibility names (set of defines)
struct mbedtls_x509_crl * next
Definition: x509_crl.h:95
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:90
mbedtls_x509_name issuer
The parsed issuer data (named information object).
Definition: x509_crl.h:80
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:85
Container for a sequence or list of 'named' ASN.1 data items.
Definition: asn1.h:151
mbedtls_md_type_t sig_md
Internal representation of the MD algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:91
mbedtls_x509_time this_update
Definition: x509_crl.h:82
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:119
Container for date and time (precision in seconds).
Definition: x509.h:207
mbedtls_x509_buf raw
Definition: x509_crl.h:54
mbedtls_x509_time next_update
Definition: x509_crl.h:83
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:72
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:93
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:76
mbedtls_x509_buf tbs
The raw certificate body (DER).
Definition: x509_crl.h:73
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:89
mbedtls_pk_type_t sig_pk
Internal representation of the Public Key algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:92
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:87
mbedtls_x509_time revocation_date
Definition: x509_crl.h:58
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:62
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:60
mbedtls_md_type_t
Definition: md.h:44