4 * @brief Interface of ocsp_t.
8 /* Support of the Online Certificate Status Protocol (OCSP) Support
9 * Copyright (C) 2003 Christoph Gysin, Simon Zwahlen
10 * Copyright (C) 2007 Andreas Steffen
11 * Hochschule fuer Technik Rapperswil, Switzerland
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
30 #define OCSP_BASIC_RESPONSE_VERSION 1
31 #define OCSP_DEFAULT_VALID_TIME 120 /* validity of one-time response in seconds */
32 #define OCSP_WARNING_INTERVAL 2 /* days */
34 /* OCSP response status */
37 STATUS_SUCCESSFUL
= 0,
38 STATUS_MALFORMEDREQUEST
= 1,
39 STATUS_INTERNALERROR
= 2,
41 STATUS_SIGREQUIRED
= 5,
42 STATUS_UNAUTHORIZED
= 6