fixed typo
[strongswan.git] / src / libstrongswan / crypto / ocsp.h
1 /**
2 * @file ocsp.h
3 *
4 * @brief Interface of ocsp_t.
5 *
6 */
7
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
12 *
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>.
17 *
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
21 * for more details.
22 *
23 */
24
25 #include "chunk.h"
26 #include "certinfo.h"
27
28 /* constants */
29
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 */
33
34 /* OCSP response status */
35
36 typedef enum {
37 STATUS_SUCCESSFUL = 0,
38 STATUS_MALFORMEDREQUEST = 1,
39 STATUS_INTERNALERROR = 2,
40 STATUS_TRYLATER = 3,
41 STATUS_SIGREQUIRED = 5,
42 STATUS_UNAUTHORIZED= 6
43 } response_status;