mbed TLS v2.16.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
include
mbedtls
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
{
56
mbedtls_x509_buf
raw
;
57
58
mbedtls_x509_buf
serial
;
59
60
mbedtls_x509_time
revocation_date
;
61
62
mbedtls_x509_buf
entry_ext
;
63
64
struct
mbedtls_x509_crl_entry
*
next
;
65
}
66
mbedtls_x509_crl_entry
;
67
72
typedef
struct
mbedtls_x509_crl
73
{
74
mbedtls_x509_buf
raw
;
75
mbedtls_x509_buf
tbs
;
77
int
version
;
78
mbedtls_x509_buf
sig_oid
;
80
mbedtls_x509_buf
issuer_raw
;
82
mbedtls_x509_name
issuer
;
84
mbedtls_x509_time
this_update
;
85
mbedtls_x509_time
next_update
;
86
87
mbedtls_x509_crl_entry
entry
;
89
mbedtls_x509_buf
crl_ext
;
90
91
mbedtls_x509_buf
sig_oid2
;
92
mbedtls_x509_buf
sig
;
93
mbedtls_md_type_t
sig_md
;
94
mbedtls_pk_type_t
sig_pk
;
95
void
*
sig_opts
;
97
struct
mbedtls_x509_crl
*
next
;
98
}
99
mbedtls_x509_crl
;
100
111
int
mbedtls_x509_crl_parse_der
(
mbedtls_x509_crl
*chain,
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
160
void
mbedtls_x509_crl_init
(
mbedtls_x509_crl
*crl );
161
167
void
mbedtls_x509_crl_free
(
mbedtls_x509_crl
*crl );
168
169
/* \} name */
170
/* \} addtogroup x509_module */
171
172
#ifdef __cplusplus
173
}
174
#endif
175
176
#endif
/* mbedtls_x509_crl.h */
Generated on Tue Aug 13 2019 20:47:14 for mbed TLS v2.16.1 by
1.8.3.1