mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
Moved ipsec_transform_t to kernel_ipsec.h in libhydra.
Because of this libfreeswan, pluto, starter etc. now depend on that file (and libhydra). This resolved some duplicate declarations.
This commit is contained in:
parent
f6659688ab
commit
08c0d340b8
@ -27,15 +27,6 @@ ENUM(action_names, ACTION_NONE, ACTION_RESTART,
|
||||
"restart",
|
||||
);
|
||||
|
||||
ENUM_BEGIN(ipcomp_transform_names, IPCOMP_NONE, IPCOMP_NONE,
|
||||
"IPCOMP_NONE");
|
||||
ENUM_NEXT(ipcomp_transform_names, IPCOMP_OUI, IPCOMP_LZJH, IPCOMP_NONE,
|
||||
"IPCOMP_OUI",
|
||||
"IPCOMP_DEFLATE",
|
||||
"IPCOMP_LZS",
|
||||
"IPCOMP_LZJH");
|
||||
ENUM_END(ipcomp_transform_names, IPCOMP_LZJH);
|
||||
|
||||
typedef struct private_child_cfg_t private_child_cfg_t;
|
||||
|
||||
/**
|
||||
|
@ -24,7 +24,6 @@
|
||||
#define CHILD_CFG_H_
|
||||
|
||||
typedef enum action_t action_t;
|
||||
typedef enum ipcomp_transform_t ipcomp_transform_t;
|
||||
typedef struct child_cfg_t child_cfg_t;
|
||||
|
||||
#include <library.h>
|
||||
@ -49,22 +48,6 @@ enum action_t {
|
||||
*/
|
||||
extern enum_name_t *action_names;
|
||||
|
||||
/**
|
||||
* IPComp transform IDs, as in RFC 4306
|
||||
*/
|
||||
enum ipcomp_transform_t {
|
||||
IPCOMP_NONE = 241,
|
||||
IPCOMP_OUI = 1,
|
||||
IPCOMP_DEFLATE = 2,
|
||||
IPCOMP_LZS = 3,
|
||||
IPCOMP_LZJH = 4,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum strings for ipcomp_transform_t.
|
||||
*/
|
||||
extern enum_name_t *ipcomp_transform_names;
|
||||
|
||||
/**
|
||||
* A child_cfg_t defines the config template for a CHILD_SA.
|
||||
*
|
||||
|
@ -11,6 +11,7 @@ libfreeswan_a_SOURCES = addrtoa.c addrtot.c addrtypeof.c anyaddr.c atoaddr.c ato
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/pluto
|
||||
|
||||
dist_man3_MANS = anyaddr.3 atoaddr.3 atoasr.3 atosa.3 atoul.3 goodmask.3 initaddr.3 initsubnet.3 \
|
||||
|
@ -27,3 +27,11 @@ ENUM(policy_dir_names, POLICY_IN, POLICY_FWD,
|
||||
"fwd"
|
||||
);
|
||||
|
||||
ENUM(ipcomp_transform_names, IPCOMP_NONE, IPCOMP_LZJH,
|
||||
"IPCOMP_NONE",
|
||||
"IPCOMP_OUI",
|
||||
"IPCOMP_DEFLATE",
|
||||
"IPCOMP_LZS",
|
||||
"IPCOMP_LZJH"
|
||||
);
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
typedef enum ipsec_mode_t ipsec_mode_t;
|
||||
typedef enum policy_dir_t policy_dir_t;
|
||||
typedef enum ipcomp_transform_t ipcomp_transform_t;
|
||||
typedef struct kernel_ipsec_t kernel_ipsec_t;
|
||||
typedef struct lifetime_cfg_t lifetime_cfg_t;
|
||||
typedef struct mark_t mark_t;
|
||||
@ -35,7 +36,7 @@ typedef struct mark_t mark_t;
|
||||
#include <selectors/traffic_selector.h>
|
||||
|
||||
/**
|
||||
* Mode of a CHILD_SA.
|
||||
* Mode of an IPsec SA.
|
||||
*/
|
||||
enum ipsec_mode_t {
|
||||
/** transport mode, no inner address */
|
||||
@ -70,6 +71,22 @@ enum policy_dir_t {
|
||||
*/
|
||||
extern enum_name_t *policy_dir_names;
|
||||
|
||||
/**
|
||||
* IPComp transform IDs, as in RFC 4306
|
||||
*/
|
||||
enum ipcomp_transform_t {
|
||||
IPCOMP_NONE = 0,
|
||||
IPCOMP_OUI = 1,
|
||||
IPCOMP_DEFLATE = 2,
|
||||
IPCOMP_LZS = 3,
|
||||
IPCOMP_LZJH = 4,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum strings for ipcomp_transform_t.
|
||||
*/
|
||||
extern enum_name_t *ipcomp_transform_names;
|
||||
|
||||
/**
|
||||
* A lifetime_cfg_t defines the lifetime limits of an SA.
|
||||
*
|
||||
|
@ -411,7 +411,7 @@ enum_names esp_transform_names =
|
||||
|
||||
static const char *const ipcomp_transform_name[] = {
|
||||
"IPCOMP_OUI",
|
||||
"IPCOMP_DEFLAT",
|
||||
"IPCOMP_DEFLATE",
|
||||
"IPCOMP_LZS",
|
||||
"IPCOMP_LZJH",
|
||||
};
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
#include <freeswan.h>
|
||||
|
||||
#include <kernel/kernel_ipsec.h>
|
||||
|
||||
#include <utils.h>
|
||||
#include <utils/identification.h>
|
||||
#include <crypto/hashers/hasher.h>
|
||||
@ -193,16 +195,9 @@ extern enum_names esp_transform_names;
|
||||
|
||||
/* IPCOMP transform values
|
||||
* RFC2407 The Internet IP security Domain of Interpretation for ISAKMP 4.4.5
|
||||
* now defined in kernel/kernel_ipsec.h
|
||||
*/
|
||||
|
||||
enum ipsec_comp_algo {
|
||||
IPSCOMP_NONE = 0,
|
||||
IPCOMP_OUI = 1,
|
||||
IPCOMP_DEFLATE = 2,
|
||||
IPCOMP_LZS = 3,
|
||||
IPCOMP_LZJH = 4
|
||||
};
|
||||
|
||||
extern enum_names ipcomp_transformid_names;
|
||||
|
||||
/* Certificate type values
|
||||
|
@ -9,6 +9,7 @@ INCLUDES = \
|
||||
-I${linux_headers} \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libfreeswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/pluto \
|
||||
-I$(top_srcdir)/src/whack \
|
||||
-I$(top_srcdir)/src/stroke
|
||||
|
@ -95,13 +95,6 @@ struct also {
|
||||
also_t *next;
|
||||
};
|
||||
|
||||
typedef struct mark_t mark_t;
|
||||
|
||||
struct mark_t{
|
||||
u_int32_t value;
|
||||
u_int32_t mask;
|
||||
};
|
||||
|
||||
typedef struct starter_conn starter_conn_t;
|
||||
|
||||
struct starter_conn {
|
||||
|
@ -39,15 +39,6 @@
|
||||
#define IPV4_LEN 4
|
||||
#define IPV6_LEN 16
|
||||
|
||||
/**
|
||||
* Mode of an IPsec SA, must be the same as in charons kernel_ipsec.h
|
||||
*/
|
||||
enum ipsec_mode_t {
|
||||
MODE_TRANSPORT = 1,
|
||||
MODE_TUNNEL,
|
||||
MODE_BEET
|
||||
};
|
||||
|
||||
/**
|
||||
* Authentication methods, must be the same as in charons authenticator.h
|
||||
*/
|
||||
|
@ -5,6 +5,7 @@ whack_SOURCES = whack.c whack.h
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libfreeswan \
|
||||
-I$(top_srcdir)/src/libhydra \
|
||||
-I$(top_srcdir)/src/pluto
|
||||
|
||||
whack_LDADD = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user