Debian Codegraph @

crt/s2n/tls/s2n_crl.h

raw symbols SCIP
1 /*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 #pragma once
17
18 #include <openssl/x509v3.h>
19
20 #include "api/s2n.h"
21 #include "api/unstable/crl.h"
22 #include "utils/s2n_result.h"
23
24 struct s2n_x509_validator;
25
26 struct s2n_crl {
27 X509_CRL *crl;
28 };
29
30 typedef enum {
31 AWAITING_RESPONSE,
32 FINISHED
33 } crl_lookup_callback_status;
34
35 struct s2n_crl_lookup {
36 crl_lookup_callback_status status;
37 X509 *cert;
38 uint16_t cert_idx;
39 struct s2n_crl *crl;
40 };
41
42 S2N_RESULT s2n_crl_handle_lookup_callback_result(struct s2n_x509_validator *validator);
43 S2N_RESULT s2n_crl_invoke_lookup_callbacks(struct s2n_connection *conn, struct s2n_x509_validator *validator);
44 S2N_RESULT s2n_crl_get_crls_from_lookup_list(struct s2n_x509_validator *validator, STACK_OF(X509_CRL) *crl_stack);
45 int s2n_crl_ossl_verify_callback(int default_ossl_ret, X509_STORE_CTX *ctx);