credentials: Add getter for nonce in OCSP request and response interface

This commit is contained in:
Tobias Brunner 2019-11-22 14:59:49 +01:00
parent a43407df52
commit 5b23427b37
2 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,5 @@
/*
* Copyright (C) 2019 Tobias Brunner
* Copyright (C) 2008 Martin Willi
* HSR Hochschule fuer Technik Rapperswil
*
@ -34,6 +35,13 @@ struct ocsp_request_t {
* Implements certificate_t interface
*/
certificate_t interface;
/**
* Get the nonce sent in this OCSP request.
*
* @return nonce in the request (internal data)
*/
chunk_t (*get_nonce)(ocsp_request_t *this);
};
#endif /** OCSP_REQUEST_H_ @}*/

View File

@ -1,4 +1,5 @@
/*
* Copyright (C) 2019 Tobias Brunner
* Copyright (C) 2008 Martin Willi
* HSR Hochschule fuer Technik Rapperswil
*
@ -54,6 +55,13 @@ struct ocsp_response_t {
*/
certificate_t certificate;
/**
* Get the nonce received with this OCSP response.
*
* @return nonce in the response (internal data)
*/
chunk_t (*get_nonce)(ocsp_response_t *this);
/**
* Check the status of a certificate by this OCSP response.
*