merged the modularization branch (credentials) back to trunk

This commit is contained in:
Martin Willi
2008-03-13 14:14:44 +00:00
parent 2df655134c
commit 552cc11b1f
495 changed files with 30378 additions and 23843 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
ipsec_PROGRAMS = stroke
stroke_SOURCES = stroke.c stroke.h stroke_keywords.c stroke_keywords.h
stroke_SOURCES = stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h
INCLUDES = -I$(top_srcdir)/src/libstrongswan
EXTRA_DIST = stroke_keywords.txt
MAINTAINERCLEANFILES = stroke_keywords.c
AM_CFLAGS = -DIPSEC_PIDDIR=\"${piddir}\"
stroke_keywords.c: stroke_keywords.txt stroke_keywords.h
$(GPERF) -C -G -t < stroke_keywords.txt > stroke_keywords.c
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdio.h>
#include <stddef.h>
#include "stroke.h"
#include "stroke_msg.h"
#include "stroke_keywords.h"
struct stroke_token {
@@ -1,5 +1,5 @@
/**
* @file stroke.h
* @file stroke_msg.h
*
* @brief Definition of stroke_msg_t.
*
@@ -22,15 +22,15 @@
* RCSID $Id$
*/
#ifndef STROKE_H_
#define STROKE_H_
#ifndef STROKE_MSG_H_
#define STROKE_MSG_H_
#include <sys/types.h>
/**
* Socket which is used to communicate between charon and stroke
*/
#define STROKE_SOCKET "/var/run/charon.ctl"
#define STROKE_SOCKET IPSEC_PIDDIR "/charon.ctl"
#define STROKE_BUF_LEN 2048
@@ -103,6 +103,16 @@ enum purge_flag_t {
PURGE_OCSP = 0x0001,
};
/**
* CRL certificate validation policy
*/
typedef enum {
CRL_STRICT_NO,
CRL_STRICT_YES,
CRL_STRICT_IFURI,
} crl_policy_t;
typedef struct stroke_end_t stroke_end_t;
/**
@@ -187,6 +197,7 @@ struct stroke_msg_t {
int mode;
int mobike;
int force_encap;
crl_policy_t crl_policy;
struct {
char *ike;
char *esp;
@@ -246,4 +257,4 @@ struct stroke_msg_t {
char buffer[STROKE_BUF_LEN];
};
#endif /* STROKE_H_ */
#endif /* STROKE_MSG_H_ */