From: Luke Howard Date: Mon, 16 May 2011 08:20:34 +0000 (+0200) Subject: cleanup getFragmentedAttribute X-Git-Tag: tr-beta1~154 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=fd1c603f1d0754f9c8c5901684cabc889010ed00 cleanup getFragmentedAttribute --- diff --git a/moonshot/mech_eap/util_radius.cpp b/moonshot/mech_eap/util_radius.cpp index 1be1d53..395755a 100644 --- a/moonshot/mech_eap/util_radius.cpp +++ b/moonshot/mech_eap/util_radius.cpp @@ -377,8 +377,7 @@ gss_eap_radius_attr_provider::getAttribute(uint32_t attrid, if (isSecretAttributeP(attrid) || isInternalAttributeP(attrid)) { return false; } else if (isFragmentedAttributeP(attrid)) { - return getFragmentedAttribute(ATTRID(attrid), - VENDOR(attrid), + return getFragmentedAttribute(attrid, authenticated, complete, value); @@ -445,6 +444,16 @@ gss_eap_radius_attr_provider::getFragmentedAttribute(uint16_t attribute, } bool +gss_eap_radius_attr_provider::getFragmentedAttribute(uint32_t attrid, + int *authenticated, + int *complete, + gss_buffer_t value) const +{ + return getFragmentedAttribute(ATTRID(attrid), VENDOR(attrid), + authenticated, complete, value); +} + +bool gss_eap_radius_attr_provider::getAttribute(uint16_t attribute, uint16_t vendor, int *authenticated, diff --git a/moonshot/mech_eap/util_radius.h b/moonshot/mech_eap/util_radius.h index 696cac0..04e6fc5 100644 --- a/moonshot/mech_eap/util_radius.h +++ b/moonshot/mech_eap/util_radius.h @@ -95,6 +95,10 @@ public: int *authenticated, int *complete, gss_buffer_t value) const; + bool getFragmentedAttribute(uint32_t attrid, + int *authenticated, + int *complete, + gss_buffer_t value) const; bool authenticated(void) const { return m_authenticated; }