aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2015-05-24 09:17:29 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2015-05-24 09:17:29 +0200
commitd6b75c95635ddee9c9e9ca93439200c08a4067f5 (patch)
treebf3021ec891d9e83c4a034fdb17dae0736b4af2f
parent13497e6cc1320b7286c4527c91a7e2c97f3badf7 (diff)
downloadstrongswan-d6b75c95635ddee9c9e9ca93439200c08a4067f5.tar.bz2
strongswan-d6b75c95635ddee9c9e9ca93439200c08a4067f5.tar.xz
List attribute request entries also during build
-rw-r--r--configure.ac2
-rw-r--r--src/libimcv/ietf/ietf_attr_attr_request.c27
2 files changed, 14 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index 760a2772a..063536c3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@
# initialize & set some vars
# ============================
-AC_INIT([strongSwan],[5.3.1dr1])
+AC_INIT([strongSwan],[5.3.1rc1])
AM_INIT_AUTOMAKE(m4_esyscmd([
echo tar-ustar
echo subdir-objects
diff --git a/src/libimcv/ietf/ietf_attr_attr_request.c b/src/libimcv/ietf/ietf_attr_attr_request.c
index 3862a0aa8..08658e2f7 100644
--- a/src/libimcv/ietf/ietf_attr_attr_request.c
+++ b/src/libimcv/ietf/ietf_attr_attr_request.c
@@ -138,8 +138,21 @@ METHOD(pa_tnc_attr_t, build, void,
METHOD(ietf_attr_attr_request_t, add, void,
private_ietf_attr_attr_request_t *this, pen_t vendor_id, u_int32_t type)
{
+ enum_name_t *pa_attr_names;
pen_type_t *entry;
+ pa_attr_names = imcv_pa_tnc_attributes->get_names(imcv_pa_tnc_attributes,
+ vendor_id);
+ if (pa_attr_names)
+ {
+ DBG2(DBG_TNC, " 0x%06x/0x%08x '%N/%N'", vendor_id, type,
+ pen_names, vendor_id, pa_attr_names, type);
+ }
+ else
+ {
+ DBG2(DBG_TNC, " 0x%06x/0x%08x '%N'", vendor_id, type,
+ pen_names, vendor_id);
+ }
entry = malloc_thing(pen_type_t);
entry->vendor_id = vendor_id;
entry->type = type;
@@ -150,7 +163,6 @@ METHOD(pa_tnc_attr_t, process, status_t,
private_ietf_attr_attr_request_t *this, u_int32_t *offset)
{
bio_reader_t *reader;
- enum_name_t *pa_attr_names;
pen_t vendor_id;
u_int32_t type;
u_int8_t reserved;
@@ -176,19 +188,6 @@ METHOD(pa_tnc_attr_t, process, status_t,
reader->read_uint8 (reader, &reserved);
reader->read_uint24(reader, &vendor_id);
reader->read_uint32(reader, &type);
-
- pa_attr_names = imcv_pa_tnc_attributes->get_names(imcv_pa_tnc_attributes,
- vendor_id);
- if (pa_attr_names)
- {
- DBG2(DBG_TNC, " 0x%06x/0x%08x '%N/%N'", vendor_id, type,
- pen_names, vendor_id, pa_attr_names, type);
- }
- else
- {
- DBG2(DBG_TNC, " 0x%06x/0x%08x '%N'", vendor_id, type,
- pen_names, vendor_id);
- }
add(this, vendor_id, type);
}
reader->destroy(reader);