diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-08 08:43:33 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-08 08:43:33 +0000 |
commit | e53ab22f988c75e23151972dbda3c4efc821c854 (patch) | |
tree | 3e66310199406a90b3e4539717bedf08bc59de8a /Source | |
parent | 6e67d74a9b511b16c7482a7ffe2f2d8c66fde24b (diff) | |
download | strongswan-e53ab22f988c75e23151972dbda3c4efc821c854.tar.bz2 strongswan-e53ab22f988c75e23151972dbda3c4efc821c854.tar.xz |
- added new types used to identify a specific IKE_SA
Diffstat (limited to 'Source')
-rw-r--r-- | Source/charon/types.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/charon/types.h b/Source/charon/types.h index a65e387e5..84caab6b0 100644 --- a/Source/charon/types.h +++ b/Source/charon/types.h @@ -24,6 +24,8 @@ #ifndef TYPES_H_ #define TYPES_H_ +#include <freeswan.h> + typedef enum status_e { SUCCESS, FAILED, @@ -32,8 +34,23 @@ typedef enum status_e { NOT_SUPPORTED } status_t; +typedef enum ike_sa_role_e { + INITIATOR, + RESPONDER +} ike_sa_role_t; + typedef struct timeval timeval_t; typedef struct timespec timespec_t; +/** + * Representates a IKE_SA spi + */ +typedef struct spi_s spi_t; + +struct spi_s{ + u_int32_t high; + u_int32_t low; +}; + #endif /*TYPES_H_*/ |