aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/constants.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-04-20 09:32:59 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-04-20 09:32:59 +0000
commitd41071802de3bdcf95c8a7917cd887b98034c245 (patch)
tree0c1d99cb649ae6542b0313a22d9bb3ac5030c66a /src/pluto/constants.h
parent4af0a77cac75422dd3b992aa6a028747434640ab (diff)
downloadstrongswan-d41071802de3bdcf95c8a7917cd887b98034c245.tar.bz2
strongswan-d41071802de3bdcf95c8a7917cd887b98034c245.tar.xz
support of the enum printf_hook
Diffstat (limited to 'src/pluto/constants.h')
-rw-r--r--src/pluto/constants.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/pluto/constants.h b/src/pluto/constants.h
index f069402be..75e2d10bc 100644
--- a/src/pluto/constants.h
+++ b/src/pluto/constants.h
@@ -320,7 +320,7 @@ typedef enum {
/* RFC 2459 CRL reason codes */
-extern enum_names crl_reason_names;
+extern enum_name_t *crl_reason_names;
typedef enum {
REASON_UNSPECIFIED = 0,
@@ -335,7 +335,7 @@ typedef enum {
/* RFC 3706 Dead Peer Detection */
-extern enum_names dpd_action_names;
+extern enum_name_t *dpd_action_names;
typedef enum {
DPD_ACTION_NONE = 0,
@@ -347,7 +347,7 @@ typedef enum {
/* Timer events */
-extern enum_names timer_event_names;
+extern enum_name_t *timer_event_names;
enum event_type {
EVENT_NULL, /* non-event */
@@ -798,15 +798,16 @@ typedef u_int16_t cpi_t;
extern enum_names ident_names;
extern enum_names cert_type_names;
-extern enum_names cert_policy_names;
+
+extern enum_name_t *cert_policy_names;
typedef enum certpolicy {
- CERT_ALWAYS_SEND = 0, /* the default */
- CERT_SEND_IF_ASKED = 1,
- CERT_NEVER_SEND = 2,
+ CERT_ALWAYS_SEND = 0, /* the default */
+ CERT_SEND_IF_ASKED = 1,
+ CERT_NEVER_SEND = 2,
- CERT_YES_SEND = 3, /* synonym for CERT_ALWAYS_SEND */
- CERT_NO_SEND = 4 /* synonym for CERT_NEVER_SEND */
+ CERT_YES_SEND = 3, /* synonym for CERT_ALWAYS_SEND */
+ CERT_NO_SEND = 4 /* synonym for CERT_NEVER_SEND */
} certpolicy_t;
/* Policies for establishing an SA