diff options
author | Yves-Alexis Perez <corsac@debian.org> | 2014-07-11 07:23:31 +0200 |
---|---|---|
committer | Yves-Alexis Perez <corsac@debian.org> | 2014-07-11 07:23:31 +0200 |
commit | 81c63b0eed39432878f78727f60a1e7499645199 (patch) | |
tree | 82387d8fecd1c20788fd8bd784a9b0bde091fb6b /src/libimcv/ietf/ietf_attr_installed_packages.c | |
parent | c5ebfc7b9c16551fe825dc1d79c3f7e2f096f6c9 (diff) | |
download | vyos-strongswan-81c63b0eed39432878f78727f60a1e7499645199.tar.gz vyos-strongswan-81c63b0eed39432878f78727f60a1e7499645199.zip |
Imported Upstream version 5.2.0
Diffstat (limited to 'src/libimcv/ietf/ietf_attr_installed_packages.c')
-rw-r--r-- | src/libimcv/ietf/ietf_attr_installed_packages.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libimcv/ietf/ietf_attr_installed_packages.c b/src/libimcv/ietf/ietf_attr_installed_packages.c index 462805e38..f33f643af 100644 --- a/src/libimcv/ietf/ietf_attr_installed_packages.c +++ b/src/libimcv/ietf/ietf_attr_installed_packages.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Andreas Steffen + * Copyright (C) 2012-2014 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it @@ -41,8 +41,6 @@ typedef struct package_entry_t package_entry_t; * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ -#define INSTALLED_PACKAGES_MIN_SIZE 4 - /** * Private data of an ietf_attr_installed_packages_t object. */ @@ -132,7 +130,7 @@ METHOD(pa_tnc_attr_t, build, void, { return; } - writer = bio_writer_create(INSTALLED_PACKAGES_MIN_SIZE); + writer = bio_writer_create(IETF_INSTALLED_PACKAGES_MIN_SIZE); writer->write_uint16(writer, 0x0000); writer->write_uint16(writer, this->packages->get_count(this->packages)); @@ -160,7 +158,7 @@ METHOD(pa_tnc_attr_t, process, status_t, *offset = 0; - if (this->value.len < INSTALLED_PACKAGES_MIN_SIZE) + if (this->value.len < IETF_INSTALLED_PACKAGES_MIN_SIZE) { DBG1(DBG_TNC, "insufficient data for IETF installed packages"); return FAILED; @@ -168,7 +166,7 @@ METHOD(pa_tnc_attr_t, process, status_t, reader = bio_reader_create(this->value); reader->read_uint16(reader, &reserved); reader->read_uint16(reader, &count); - *offset = INSTALLED_PACKAGES_MIN_SIZE; + *offset = IETF_INSTALLED_PACKAGES_MIN_SIZE; while (reader->remaining(reader)) { |