2 * Copyright (C) 2008 Martin Willi
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 * @defgroup ocsp_response_wrapper ocsp_response_wrapper
23 #ifndef OCSP_RESPONSE_WRAPPER_H_
24 #define OCSP_RESPONSE_WRAPPER_H_
26 #include <credentials/credential_set.h>
27 #include <credentials/certificates/ocsp_response.h>
29 typedef struct ocsp_response_wrapper_t ocsp_response_wrapper_t
;
32 * A wrapper around ocsp_response_t to handle it like a credential set.
34 struct ocsp_response_wrapper_t
{
37 * implements credential_set_t
42 * Destroy a ocsp_response_wrapper instance.
44 void (*destroy
)(ocsp_response_wrapper_t
*this);
48 * Create a ocsp_response_wrapper instance.
50 * @param response the wrapped OCSP response
51 * @return wrapper around response
53 ocsp_response_wrapper_t
*ocsp_response_wrapper_create(ocsp_response_t
*response
);
55 #endif /* OCSP_RESPONSE_WRAPPER_H_ @}*/