Mbed TLS v3.6.7
Toggle main menu visibility
Loading...
Searching...
No Matches
x509_crl.h
Go to the documentation of this file.
1
6
/*
7
* Copyright The Mbed TLS Contributors
8
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9
*/
10
#ifndef MBEDTLS_X509_CRL_H
11
#define MBEDTLS_X509_CRL_H
12
#include "
mbedtls/private_access.h
"
13
14
#include "
mbedtls/build_info.h
"
15
16
#include "
mbedtls/x509.h
"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
25
30
39
typedef
struct
mbedtls_x509_crl_entry
{
41
mbedtls_x509_buf
raw
;
43
mbedtls_x509_buf
serial
;
45
mbedtls_x509_time
revocation_date
;
51
mbedtls_x509_buf
entry_ext
;
52
56
struct
mbedtls_x509_crl_entry
*
next
;
57
}
58
mbedtls_x509_crl_entry
;
59
64
typedef
struct
mbedtls_x509_crl
{
65
mbedtls_x509_buf
raw
;
66
mbedtls_x509_buf
tbs
;
67
68
int
version
;
69
mbedtls_x509_buf
sig_oid
;
70
71
mbedtls_x509_buf
issuer_raw
;
72
73
mbedtls_x509_name
issuer
;
74
75
mbedtls_x509_time
this_update
;
76
mbedtls_x509_time
next_update
;
77
78
mbedtls_x509_crl_entry
entry
;
79
80
mbedtls_x509_buf
crl_ext
;
81
82
mbedtls_x509_buf
MBEDTLS_PRIVATE
(sig_oid2);
83
mbedtls_x509_buf
MBEDTLS_PRIVATE
(sig);
84
mbedtls_md_type_t
MBEDTLS_PRIVATE
(sig_md);
85
mbedtls_pk_type_t
MBEDTLS_PRIVATE
(sig_pk);
86
void
*
MBEDTLS_PRIVATE
(sig_opts);
87
91
struct
mbedtls_x509_crl
*
next
;
92
}
93
mbedtls_x509_crl
;
94
109
int
mbedtls_x509_crl_parse_der
(
mbedtls_x509_crl
*chain,
110
const
unsigned
char
*buf,
size_t
buflen);
127
int
mbedtls_x509_crl_parse
(
mbedtls_x509_crl
*chain,
const
unsigned
char
*buf,
size_t
buflen);
128
129
#if defined(MBEDTLS_FS_IO)
144
int
mbedtls_x509_crl_parse_file
(
mbedtls_x509_crl
*chain,
const
char
*path);
145
#endif
/* MBEDTLS_FS_IO */
146
147
#if !defined(MBEDTLS_X509_REMOVE_INFO)
159
int
mbedtls_x509_crl_info
(
char
*buf,
size_t
size,
const
char
*prefix,
160
const
mbedtls_x509_crl
*crl);
161
#endif
/* !MBEDTLS_X509_REMOVE_INFO */
162
168
void
mbedtls_x509_crl_init
(
mbedtls_x509_crl
*crl);
169
175
void
mbedtls_x509_crl_free
(
mbedtls_x509_crl
*crl);
176
179
180
#ifdef __cplusplus
181
}
182
#endif
183
184
#endif
/* mbedtls_x509_crl.h */
mbedtls_x509_name
mbedtls_asn1_named_data mbedtls_x509_name
Definition
x509.h:227
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_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_buf
mbedtls_asn1_buf mbedtls_x509_buf
Definition
x509.h:216
mbedtls_x509_crl_init
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain).
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_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_free
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
build_info.h
Build-time configuration info.
mbedtls_md_type_t
mbedtls_md_type_t
Supported message digests.
Definition
md.h:47
mbedtls_pk_type_t
mbedtls_pk_type_t
Public key types.
Definition
pk.h:73
private_access.h
Macro wrapper for struct's members.
MBEDTLS_PRIVATE
#define MBEDTLS_PRIVATE(member)
Definition
private_access.h:15
mbedtls_x509_crl_entry
Definition
x509_crl.h:39
mbedtls_x509_crl_entry::serial
mbedtls_x509_buf serial
Definition
x509_crl.h:43
mbedtls_x509_crl_entry::entry_ext
mbedtls_x509_buf entry_ext
Definition
x509_crl.h:51
mbedtls_x509_crl_entry::raw
mbedtls_x509_buf raw
Definition
x509_crl.h:41
mbedtls_x509_crl_entry::revocation_date
mbedtls_x509_time revocation_date
Definition
x509_crl.h:45
mbedtls_x509_crl_entry::next
struct mbedtls_x509_crl_entry * next
Definition
x509_crl.h:56
mbedtls_x509_crl
Definition
x509_crl.h:64
mbedtls_x509_crl::issuer_raw
mbedtls_x509_buf issuer_raw
Definition
x509_crl.h:71
mbedtls_x509_crl::this_update
mbedtls_x509_time this_update
Definition
x509_crl.h:75
mbedtls_x509_crl::crl_ext
mbedtls_x509_buf crl_ext
Definition
x509_crl.h:80
mbedtls_x509_crl::next
struct mbedtls_x509_crl * next
Definition
x509_crl.h:91
mbedtls_x509_crl::raw
mbedtls_x509_buf raw
Definition
x509_crl.h:65
mbedtls_x509_crl::next_update
mbedtls_x509_time next_update
Definition
x509_crl.h:76
mbedtls_x509_crl::entry
mbedtls_x509_crl_entry entry
Definition
x509_crl.h:78
mbedtls_x509_crl::issuer
mbedtls_x509_name issuer
Definition
x509_crl.h:73
mbedtls_x509_crl::version
int version
Definition
x509_crl.h:68
mbedtls_x509_crl::tbs
mbedtls_x509_buf tbs
Definition
x509_crl.h:66
mbedtls_x509_crl::sig_oid
mbedtls_x509_buf sig_oid
Definition
x509_crl.h:69
mbedtls_x509_time
Definition
x509.h:246
x509.h
X.509 generic defines and structures.
include
mbedtls
x509_crl.h
Generated on
for Mbed TLS v3.6.7 by
1.17.0