scepclient and pluto use asn1 from libstrongswan
This commit is contained in:
@@ -63,6 +63,8 @@ enum.c enum.h \
|
||||
printf_hook.c printf_hook.h \
|
||||
settings.c settings.h \
|
||||
utils.c utils.h \
|
||||
asn1/asn1.c asn1/asn1.h \
|
||||
asn1/asn1_parser.c asn1/asn1_parser.h \
|
||||
asn1/oid.c asn1/oid.h \
|
||||
utils/enumerator.c utils/enumerator.h \
|
||||
utils/lexparser.c utils/lexparser.h \
|
||||
@@ -70,8 +72,10 @@ utils/linked_list.c utils/linked_list.h \
|
||||
utils/optionsfrom.c utils/optionsfrom.h
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||
AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PLUGINDIR=\"${plugindir}\"
|
||||
AM_CFLAGS = \
|
||||
-DIPSEC_DIR=\"${ipsecdir}\" \
|
||||
-DIPSEC_PLUGINDIR=\"${plugindir}\" \
|
||||
-Wformat=0
|
||||
|
||||
if USE_LEAK_DETECTIVE
|
||||
AM_CFLAGS += -DLEAK_DETECTIVE
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <utils.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "oid.h"
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <utils.h>
|
||||
#include <chunk.h>
|
||||
|
||||
/**
|
||||
* Definition of some primitive ASN1 types
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <utils.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "asn1.h"
|
||||
|
||||
@@ -27,7 +27,9 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <library.h>
|
||||
#include <utils.h>
|
||||
#include <chunk.h>
|
||||
#include <asn1/asn1.h>
|
||||
|
||||
/**
|
||||
* Definition of ASN.1 flags
|
||||
|
||||
@@ -225,13 +225,13 @@ bool chunk_write(chunk_t chunk, char *path, char *label, mode_t mask, bool force
|
||||
{
|
||||
if (fwrite(chunk.ptr, sizeof(u_char), chunk.len, fd) == chunk.len)
|
||||
{
|
||||
DBG1(" written to %s file '%s' (%d bytes)",
|
||||
DBG1(" written %s file '%s' (%d bytes)",
|
||||
label, path, chunk.len);
|
||||
good = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG1(" writing to %s file '%s' failed: %s",
|
||||
DBG1(" writing %s file '%s' failed: %s",
|
||||
label, path, strerror(errno));
|
||||
}
|
||||
fclose(fd);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan
|
||||
|
||||
AM_CFLAGS = -rdynamic
|
||||
AM_CFLAGS = -rdynamic -Wformat=0
|
||||
|
||||
plugin_LTLIBRARIES = libstrongswan-x509.la
|
||||
|
||||
|
||||
Reference in New Issue
Block a user