credentials: Add getter for nonce in OCSP request and response interface
This commit is contained in:
parent
a43407df52
commit
5b23427b37
|
@ -1,4 +1,5 @@
|
||||||
/*
|
/*
|
||||||
|
* Copyright (C) 2019 Tobias Brunner
|
||||||
* Copyright (C) 2008 Martin Willi
|
* Copyright (C) 2008 Martin Willi
|
||||||
* HSR Hochschule fuer Technik Rapperswil
|
* HSR Hochschule fuer Technik Rapperswil
|
||||||
*
|
*
|
||||||
|
@ -34,6 +35,13 @@ struct ocsp_request_t {
|
||||||
* Implements certificate_t interface
|
* Implements certificate_t interface
|
||||||
*/
|
*/
|
||||||
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_ @}*/
|
#endif /** OCSP_REQUEST_H_ @}*/
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/*
|
/*
|
||||||
|
* Copyright (C) 2019 Tobias Brunner
|
||||||
* Copyright (C) 2008 Martin Willi
|
* Copyright (C) 2008 Martin Willi
|
||||||
* HSR Hochschule fuer Technik Rapperswil
|
* HSR Hochschule fuer Technik Rapperswil
|
||||||
*
|
*
|
||||||
|
@ -54,6 +55,13 @@ struct ocsp_response_t {
|
||||||
*/
|
*/
|
||||||
certificate_t certificate;
|
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.
|
* Check the status of a certificate by this OCSP response.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue