mbed TLS v2.14.1
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: Apache-2.0
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License"); you may
11  * not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  * This file is part of mbed TLS (https://tls.mbed.org)
23  */
24 #ifndef MBEDTLS_X509_CRL_H
25 #define MBEDTLS_X509_CRL_H
26 
27 #if !defined(MBEDTLS_CONFIG_FILE)
28 #include "config.h"
29 #else
30 #include MBEDTLS_CONFIG_FILE
31 #endif
32 
33 #include "x509.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
52 typedef struct mbedtls_x509_crl_entry
53 {
55 
57 
59 
61 
63 }
65 
70 typedef struct mbedtls_x509_crl
71 {
75  int version;
84 
88 
93  void *sig_opts;
96 }
98 
110  const unsigned char *buf, size_t buflen );
123 int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
124 
125 #if defined(MBEDTLS_FS_IO)
126 
136 int mbedtls_x509_crl_parse_file( mbedtls_x509_crl *chain, const char *path );
137 #endif /* MBEDTLS_FS_IO */
138 
150 int mbedtls_x509_crl_info( char *buf, size_t size, const char *prefix,
151  const mbedtls_x509_crl *crl );
152 
159 
166 
167 /* \} name */
168 /* \} addtogroup x509_module */
169 
170 #ifdef __cplusplus
171 }
172 #endif
173 
174 #endif /* mbedtls_x509_crl.h */