RetroArch
x509_crl.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_X509_CRL_H
24 #define MBEDTLS_X509_CRL_H
25 
26 #if !defined(MBEDTLS_CONFIG_FILE)
27 #include "config.h"
28 #else
29 #include MBEDTLS_CONFIG_FILE
30 #endif
31 
32 #include "x509.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
51 typedef struct mbedtls_x509_crl_entry
52 {
54 
56 
58 
60 
62 }
64 
69 typedef struct mbedtls_x509_crl
70 {
74  int version;
83 
87 
92  void *sig_opts;
95 }
97 
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 */
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.
Definition: x509_crl.c:580
struct mbedtls_x509_crl * next
Definition: x509_crl.h:94
void * sig_opts
Definition: x509_crl.h:92
Configuration options (set of defines)
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
Definition: x509_crl.c:663
Definition: x509.h:206
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
GLsizei const GLchar ** path
Definition: glext.h:7901
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:88
GLsizeiptr size
Definition: glext.h:6559
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.
Definition: x509_crl.c:552
mbedtls_x509_buf sig_oid
Definition: x509_crl.h:75
Definition: asn1.h:118
mbedtls_md_type_t
Definition: md.h:39
mbedtls_pk_type_t
Public key types.
Definition: pk.h:71
mbedtls_x509_buf sig
Definition: x509_crl.h:89
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
struct mbedtls_x509_crl mbedtls_x509_crl
mbedtls_x509_buf serial
Definition: x509_crl.h:55
mbedtls_x509_name issuer
Definition: x509_crl.h:79
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:59
mbedtls_x509_time next_update
Definition: x509_crl.h:82
mbedtls_x509_buf raw
Definition: x509_crl.h:53
mbedtls_pk_type_t sig_pk
Definition: x509_crl.h:91
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:77
mbedtls_x509_buf tbs
Definition: x509_crl.h:72
Definition: x509_crl.h:69
mbedtls_x509_crl_entry entry
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.
Definition: x509_crl.c:487
mbedtls_x509_time revocation_date
Definition: x509_crl.h:57
mbedtls_x509_buf raw
Definition: x509_crl.h:71
mbedtls_x509_time this_update
Definition: x509_crl.h:81
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:61
Definition: asn1.h:150
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.
Definition: x509_crl.c:252
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:86
mbedtls_md_type_t sig_md
Definition: x509_crl.h:90
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
Definition: x509_crl.c:655
X.509 generic defines and structures.
Definition: x509_crl.h:51
int version
Definition: x509_crl.h:74