strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4fae0b
)
- added missing types previously defined in strongswan
author
Martin Willi
<martin@strongswan.org>
Thu, 10 Nov 2005 09:12:37 +0000
(09:12 -0000)
committer
Martin Willi
<martin@strongswan.org>
Thu, 10 Nov 2005 09:12:37 +0000
(09:12 -0000)
Source/charon/types.h
patch
|
blob
|
history
diff --git
a/Source/charon/types.h
b/Source/charon/types.h
index
b69efdc
..
a427160
100644
(file)
--- a/
Source/charon/types.h
+++ b/
Source/charon/types.h
@@
-24,7
+24,7
@@
#ifndef TYPES_H_
#define TYPES_H_
#ifndef TYPES_H_
#define TYPES_H_
-#include <
freeswan
.h>
+#include <
sys/types
.h>
typedef enum status_e {
SUCCESS,
typedef enum status_e {
SUCCESS,
@@
-49,10
+49,26
@@
typedef struct timespec timespec_t;
* Representates a IKE_SA spi
*/
typedef struct spi_s spi_t;
* Representates a IKE_SA spi
*/
typedef struct spi_s spi_t;
-
struct spi_s{
u_int32_t high;
u_int32_t low;
};
struct spi_s{
u_int32_t high;
u_int32_t low;
};
+/**
+ * General purpose pointer/length abstraction
+ */
+typedef struct chunk_s chunk_t;
+struct chunk_s {
+ u_char *ptr;
+ size_t len;
+};
+
+/**
+ * General purpose boolean type
+ */
+typedef int bool;
+#define FALSE 0
+#define TRUE 1
+
+
#endif /*TYPES_H_*/
#endif /*TYPES_H_*/