mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
x509: Add getter for status of OCSP responses
This commit is contained in:
parent
e7a58f46f9
commit
b3e66aca5c
@ -56,6 +56,13 @@ struct ocsp_response_t {
|
||||
*/
|
||||
certificate_t certificate;
|
||||
|
||||
/**
|
||||
* Get general status of this OCSP response.
|
||||
*
|
||||
* @return OCSP status
|
||||
*/
|
||||
ocsp_status_t (*get_ocsp_status)(ocsp_response_t *this);
|
||||
|
||||
/**
|
||||
* Get the nonce received with this OCSP response.
|
||||
*
|
||||
|
@ -263,6 +263,12 @@ METHOD(ocsp_response_t, create_response_enumerator, enumerator_t*,
|
||||
filter, NULL, NULL);
|
||||
}
|
||||
|
||||
METHOD(ocsp_response_t, get_ocsp_status, ocsp_status_t,
|
||||
private_x509_ocsp_response_t *this)
|
||||
{
|
||||
return this->ocsp_status;
|
||||
}
|
||||
|
||||
METHOD(ocsp_response_t, get_nonce, chunk_t,
|
||||
private_x509_ocsp_response_t *this)
|
||||
{
|
||||
@ -1049,6 +1055,7 @@ static private_x509_ocsp_response_t *create_empty()
|
||||
.get_ref = _get_ref,
|
||||
.destroy = _destroy,
|
||||
},
|
||||
.get_ocsp_status = _get_ocsp_status,
|
||||
.get_nonce = _get_nonce,
|
||||
.get_status = _get_status,
|
||||
.create_cert_enumerator = _create_cert_enumerator,
|
||||
|
Loading…
x
Reference in New Issue
Block a user