mbed TLS v2.16.6
x509_crl.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
8  * SPDX-License-Identifier: GPL-2.0
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License along
21  * with this program; if not, write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  *
24  * This file is part of mbed TLS (https://tls.mbed.org)
25  */
26 #ifndef MBEDTLS_X509_CRL_H
27 #define MBEDTLS_X509_CRL_H
28 
29 #if !defined(MBEDTLS_CONFIG_FILE)
30 #include "config.h"
31 #else
32 #include MBEDTLS_CONFIG_FILE
33 #endif
34 
35 #include "x509.h"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
54 typedef struct mbedtls_x509_crl_entry
55 {
57 
59 
61 
63 
65 }
67 
72 typedef struct mbedtls_x509_crl
73 {
77  int version;
86 
90 
95  void *sig_opts;
98 }
100 
112  const unsigned char *buf, size_t buflen );
125 int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
126 
127 #if defined(MBEDTLS_FS_IO)
128 
138 int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
139 #endif /* MBEDTLS_FS_IO */
140 
152 int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
153  const mbedtls_x509_crl *crl );
154 
161 
168 
169 /* \} name */
170 /* \} addtogroup x509_module */
171 
172 #ifdef __cplusplus
173 }
174 #endif
175 
176 #endif /* mbedtls_x509_crl.h */
Definition: x509_crl.h:54
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.
struct mbedtls_x509_crl mbedtls_x509_crl
mbedtls_x509_buf serial
Definition: x509_crl.h:58
mbedtls_x509_buf issuer_raw
Definition: x509_crl.h:80
mbedtls_pk_type_t
Public key types.
Definition: pk.h:80
Configuration options (set of defines)
struct mbedtls_x509_crl * next
Definition: x509_crl.h:97
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:92
mbedtls_x509_name issuer
Definition: x509_crl.h:82
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
Definition: x509_crl.h:87
mbedtls_md_type_t sig_md
Definition: x509_crl.h:93
mbedtls_x509_time this_update
Definition: x509_crl.h:84
void mbedtls_x509_crl_free(mbedtls_x509_crl *crl)
Unallocate all CRL data.
mbedtls_x509_buf raw
Definition: x509_crl.h:56
mbedtls_x509_time next_update
Definition: x509_crl.h:85
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
Definition: x509_crl.h:74
struct mbedtls_x509_crl_entry mbedtls_x509_crl_entry
void * sig_opts
Definition: x509_crl.h:95
void mbedtls_x509_crl_init(mbedtls_x509_crl *crl)
Initialize a CRL (chain)
X.509 generic defines and structures.
mbedtls_x509_buf sig_oid
Definition: x509_crl.h:78
mbedtls_x509_buf tbs
Definition: x509_crl.h:75
mbedtls_x509_buf sig_oid2
Definition: x509_crl.h:91
mbedtls_pk_type_t sig_pk
Definition: x509_crl.h:94
mbedtls_x509_buf crl_ext
Definition: x509_crl.h:89
mbedtls_x509_time revocation_date
Definition: x509_crl.h:60
struct mbedtls_x509_crl_entry * next
Definition: x509_crl.h:64
mbedtls_x509_buf entry_ext
Definition: x509_crl.h:62
mbedtls_md_type_t
Supported message digests.
Definition: md.h:60