PolarSSL v1.3.9
x509_crl.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_X509_CRL_H
28 #define POLARSSL_X509_CRL_H
29 
30 #if !defined(POLARSSL_CONFIG_FILE)
31 #include "config.h"
32 #else
33 #include POLARSSL_CONFIG_FILE
34 #endif
35 
36 #include "x509.h"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
55 typedef struct _x509_crl_entry
56 {
58 
60 
62 
64 
66 }
68 
73 typedef struct _x509_crl
74 {
78  int version;
80 
87 
91 
96  void *sig_opts;
98  struct _x509_crl *next;
99 }
100 x509_crl;
101 
112 int x509_crl_parse( x509_crl *chain, const unsigned char *buf, size_t buflen );
113 
114 #if defined(POLARSSL_FS_IO)
115 
124 int x509_crl_parse_file( x509_crl *chain, const char *path );
125 #endif /* POLARSSL_FS_IO */
126 
138 int x509_crl_info( char *buf, size_t size, const char *prefix,
139  const x509_crl *crl );
140 
146 void x509_crl_init( x509_crl *crl );
147 
153 void x509_crl_free( x509_crl *crl );
154 
155 /* \} name */
156 /* \} addtogroup x509_module */
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif /* x509_crl.h */
x509_buf sig
Definition: x509_crl.h:93
struct _x509_crl_entry x509_crl_entry
Certificate revocation list entry.
void x509_crl_init(x509_crl *crl)
Initialize a CRL (chain)
int version
CRL version (1=v1, 2=v2)
Definition: x509_crl.h:78
x509_time next_update
Definition: x509_crl.h:86
Certificate revocation list entry.
Definition: x509_crl.h:55
struct _x509_crl * next
Definition: x509_crl.h:98
void * sig_opts
Signature options to be passed to pk_verify_ext(), e.g.
Definition: x509_crl.h:96
Container for date and time (precision in seconds).
Definition: x509.h:183
Configuration options (set of defines)
x509_buf sig_oid2
Definition: x509_crl.h:92
x509_name issuer
The parsed issuer data (named information object).
Definition: x509_crl.h:83
int x509_crl_parse_file(x509_crl *chain, const char *path)
Load one or more CRLs and add them to the chained list.
x509_buf serial
Definition: x509_crl.h:59
int x509_crl_parse(x509_crl *chain, const unsigned char *buf, size_t buflen)
Parse one or more CRLs and add them to the chained list.
int x509_crl_info(char *buf, size_t size, const char *prefix, const x509_crl *crl)
Returns an informational string about the CRL.
struct _x509_crl x509_crl
Certificate revocation list structure.
md_type_t
Definition: md.h:51
x509_crl_entry entry
The CRL entries containing the certificate revocation times for this CA.
Definition: x509_crl.h:88
x509_buf sig_oid1
Definition: x509_crl.h:79
void x509_crl_free(x509_crl *crl)
Unallocate all CRL data.
x509_buf tbs
The raw certificate body (DER).
Definition: x509_crl.h:76
struct _x509_crl_entry * next
Definition: x509_crl.h:65
md_type_t sig_md
Internal representation of the MD algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:94
pk_type_t
Public key types.
Definition: pk.h:95
X.509 generic defines and structures.
x509_time this_update
Definition: x509_crl.h:85
Container for a sequence or list of 'named' ASN.1 data items.
Definition: asn1.h:156
Type-length-value structure that allows for ASN1 using DER.
Definition: asn1.h:124
x509_buf entry_ext
Definition: x509_crl.h:63
pk_type_t sig_pk
Internal representation of the Public Key algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:95
x509_buf raw
Definition: x509_crl.h:57
Certificate revocation list structure.
Definition: x509_crl.h:73
x509_buf raw
The raw certificate data (DER).
Definition: x509_crl.h:75
x509_time revocation_date
Definition: x509_crl.h:61
x509_buf issuer_raw
The raw issuer data (DER).
Definition: x509_crl.h:81
x509_buf crl_ext
Definition: x509_crl.h:90