| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 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); |