4
#define PRINT_SA_DEBUG 1
5
#include "../../programs/pluto/spdb.c"
7
#define AD(x) x, elemsof(x) /* Array Description */
8
#define AD_NULL NULL, 0
10
* empty structure, for clone use.
12
static struct db_attr otempty[] = {
13
{ OAKLEY_ENCRYPTION_ALGORITHM, -1 },
14
{ OAKLEY_HASH_ALGORITHM, -1 },
15
{ OAKLEY_AUTHENTICATION_METHOD, -1 },
16
{ OAKLEY_GROUP_DESCRIPTION, -1 },
19
static struct db_trans oakley_trans_empty[] = {
20
{ KEY_IKE, AD(otempty) },
23
static struct db_prop oakley_pc_empty[] =
24
{ { PROTO_ISAKMP, AD(oakley_trans_empty) } };
26
static struct db_prop_conj oakley_props_empty[] = { { AD(oakley_pc_empty) } };
28
struct db_sa oakley_empty = { AD(oakley_props_empty) };
32
void exit_tool(int stat)
37
main(int argc, char *argv[])
40
struct db_sa *sa1 = NULL;
46
for(i=0; i < elemsof(oakley_sadb); i++) {
47
/* make sure that leak reports and EFence reports get
48
* placed in the right order.
52
printf("\nmain mode oakley: %u\n", i);
53
sa_print(&oakley_sadb[i]);
54
sa1 = sa_copy_sa_first(&oakley_sadb[i]);