x509_crl.h
Go to the documentation of this file.
#ifndef MBEDTLS_X509_CRL_H
#define MBEDTLS_X509_CRL_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#include "x509.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct mbedtls_x509_crl_entry
{
mbedtls_x509_buf raw;
mbedtls_x509_buf serial;
mbedtls_x509_time revocation_date;
mbedtls_x509_buf entry_ext;
struct mbedtls_x509_crl_entry *next;
}
mbedtls_x509_crl_entry;
typedef struct mbedtls_x509_crl
{
mbedtls_x509_buf raw;
mbedtls_x509_buf tbs;
int version;
mbedtls_x509_buf sig_oid;
mbedtls_x509_buf issuer_raw;
mbedtls_x509_name issuer;
mbedtls_x509_time this_update;
mbedtls_x509_time next_update;
mbedtls_x509_crl_entry entry;
mbedtls_x509_buf crl_ext;
mbedtls_x509_buf sig_oid2;
mbedtls_x509_buf sig;
mbedtls_md_type_t sig_md;
mbedtls_pk_type_t sig_pk;
void *sig_opts;
struct mbedtls_x509_crl *next;
}
mbedtls_x509_crl;
int mbedtls_x509_crl_parse_der( mbedtls_x509_crl *chain,
const unsigned char *buf, size_t buflen );
int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
#if defined(MBEDTLS_FS_IO)
int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
#endif /* MBEDTLS_FS_IO */
int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
const mbedtls_x509_crl *crl );
void mbedtls_x509_crl_init( mbedtls_x509_crl *crl );
void mbedtls_x509_crl_free( mbedtls_x509_crl *crl );
/* \} name */
/* \} addtogroup x509_module */
#ifdef __cplusplus
}
#endif
#endif /* mbedtls_x509_crl.h */
mbedtls_x509_crl_entry
Certificate revocation list entry.
Definition: x509_crl.h:51
mbedtls_x509_crl::version
int version
CRL version (1=v1, 2=v2)
Definition: x509_crl.h:74
mbedtls_x509_crl_info
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.
mbedtls_x509_crl
Certificate revocation list structure.
Definition: x509_crl.h:69
mbedtls_x509_crl
struct mbedtls_x509_crl mbedtls_x509_crl
Certificate revocation list structure.
mbedtls_x509_crl_entry::serial
mbedtls_x509_buf serial
Definition: x509_crl.h:55
mbedtls_x509_crl::issuer_raw
mbedtls_x509_buf issuer_raw
The raw issuer data (DER).
Definition: x509_crl.h:77
mbedtls_pk_type_t
mbedtls_pk_type_t
Public key types.
Definition: pk.h:74
config.h
Configuration options (set of defines)
mbedtls_x509_crl::next
struct mbedtls_x509_crl * next
Definition: x509_crl.h:94
mbedtls_x509_crl_parse_der
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_crl::sig
mbedtls_x509_buf sig
Definition: x509_crl.h:89
mbedtls_x509_crl::issuer
mbedtls_x509_name issuer
The parsed issuer data (named information object).
Definition: x509_crl.h:79
mbedtls_x509_crl_parse_file
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
mbedtls_x509_crl_entry entry
The CRL entries containing the certificate revocation times for this CA.
Definition: x509_crl.h:84
mbedtls_asn1_named_data
Container for a sequence or list of &#39;named&#39; ASN.1 data items.
Definition: asn1.h:150
mbedtls_x509_crl::sig_md
mbedtls_md_type_t sig_md
Internal representation of the MD algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:90
mbedtls_x509_crl::this_update
mbedtls_x509_time this_update
Definition: x509_crl.h:81
mbedtls_x509_crl_free
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
mbedtls_asn1_buf
Type-length-value structure that allows for ASN1 using DER.
Definition: asn1.h:118
mbedtls_x509_time
Container for date and time (precision in seconds).
Definition: x509.h:207
mbedtls_x509_crl_entry::raw
mbedtls_x509_buf raw
Definition: x509_crl.h:53
mbedtls_x509_crl::next_update
mbedtls_x509_time next_update
Definition: x509_crl.h:82
mbedtls_x509_crl_parse
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_crl::raw
mbedtls_x509_buf raw
The raw certificate data (DER).
Definition: x509_crl.h:71
mbedtls_x509_crl_entry
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
Certificate revocation list entry.
mbedtls_x509_crl::sig_opts
void * sig_opts
Signature options to be passed to mbedtls_pk_verify_ext(), e.g.
Definition: x509_crl.h:92
mbedtls_x509_crl_init
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
x509.h
X.509 generic defines and structures.
mbedtls_x509_crl::sig_oid
mbedtls_x509_buf sig_oid
CRL signature type identifier.
Definition: x509_crl.h:75
mbedtls_x509_crl::tbs
mbedtls_x509_buf tbs
The raw certificate body (DER).
Definition: x509_crl.h:72
mbedtls_x509_crl::sig_oid2
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:88
mbedtls_x509_crl::sig_pk
mbedtls_pk_type_t sig_pk
Internal representation of the Public Key algorithm of the signature algorithm, e.g.
Definition: x509_crl.h:91
mbedtls_x509_crl::crl_ext
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:86
mbedtls_x509_crl_entry::revocation_date
mbedtls_x509_time revocation_date
Definition: x509_crl.h:57
mbedtls_x509_crl_entry::next
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:61
mbedtls_x509_crl_entry::entry_ext
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:59
mbedtls_md_type_t
mbedtls_md_type_t
Definition: md.h:39