Add ocsp=3 configuration parameter for multi-OCSP
ocsp=3 extends ocsp=2 by require all not-trusted certificates in the server certificate chain to receive a good OCSP status. This requires support for ocsp_multi (RFC 6961). This commit is only adding the configuration value, but all the currently included TLS library wrappers are rejecting this as unsupported for now. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
02683830b5
commit
d6b536f7e5
6 changed files with 26 additions and 1 deletions
|
@ -196,8 +196,10 @@ static int eap_tls_init_connection(struct eap_sm *sm,
|
|||
|
||||
if (config->ocsp)
|
||||
params->flags |= TLS_CONN_REQUEST_OCSP;
|
||||
if (config->ocsp == 2)
|
||||
if (config->ocsp >= 2)
|
||||
params->flags |= TLS_CONN_REQUIRE_OCSP;
|
||||
if (config->ocsp == 3)
|
||||
params->flags |= TLS_CONN_REQUIRE_OCSP_ALL;
|
||||
data->conn = tls_connection_init(data->ssl_ctx);
|
||||
if (data->conn == NULL) {
|
||||
wpa_printf(MSG_INFO, "SSL: Failed to initialize new TLS "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue