From 2c91b6ca8c89cc91d9b83d87191354053f4b9264 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 24 Oct 2016 14:42:56 +0200 Subject: [PATCH] pEapOutput Prefast specifier for set_response_attributes() methods changed --- lib/EAPBase/include/Method.h | 2 +- lib/EAPBase/include/Module.h | 2 +- lib/EAPBase/src/Method.cpp | 2 +- lib/TTLS/include/Method.h | 2 +- lib/TTLS/include/Module.h | 2 +- lib/TTLS/src/Method.cpp | 2 +- lib/TTLS/src/Module.cpp | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/EAPBase/include/Method.h b/lib/EAPBase/include/Method.h index 42b60ab..d73a98b 100644 --- a/lib/EAPBase/include/Method.h +++ b/lib/EAPBase/include/Method.h @@ -175,7 +175,7 @@ namespace eap /// virtual void set_response_attributes( _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput); + _Out_ EapPeerMethodOutput *pEapOutput); /// @} diff --git a/lib/EAPBase/include/Module.h b/lib/EAPBase/include/Module.h index eaf4d47..a20132d 100644 --- a/lib/EAPBase/include/Module.h +++ b/lib/EAPBase/include/Module.h @@ -781,7 +781,7 @@ namespace eap virtual void set_response_attributes( _In_ EAP_SESSION_HANDLE hSession, _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput) = 0; + _Out_ EapPeerMethodOutput *pEapOutput) = 0; /// @} }; diff --git a/lib/EAPBase/src/Method.cpp b/lib/EAPBase/src/Method.cpp index 81863d6..87eea25 100644 --- a/lib/EAPBase/src/Method.cpp +++ b/lib/EAPBase/src/Method.cpp @@ -147,7 +147,7 @@ void eap::method::get_response_attributes(_Inout_ EapAttributes *pAttribs) void eap::method::set_response_attributes( _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput) + _Out_ EapPeerMethodOutput *pEapOutput) { UNREFERENCED_PARAMETER(pAttribs); assert(pEapOutput); diff --git a/lib/TTLS/include/Method.h b/lib/TTLS/include/Method.h index 0bdc635..f599571 100644 --- a/lib/TTLS/include/Method.h +++ b/lib/TTLS/include/Method.h @@ -164,7 +164,7 @@ namespace eap /// virtual void set_response_attributes( _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput); + _Out_ EapPeerMethodOutput *pEapOutput); /// @} diff --git a/lib/TTLS/include/Module.h b/lib/TTLS/include/Module.h index edcc02a..5689f9e 100644 --- a/lib/TTLS/include/Module.h +++ b/lib/TTLS/include/Module.h @@ -209,7 +209,7 @@ namespace eap virtual void set_response_attributes( _In_ EAP_SESSION_HANDLE hSession, _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput); + _Out_ EapPeerMethodOutput *pEapOutput); /// @} diff --git a/lib/TTLS/src/Method.cpp b/lib/TTLS/src/Method.cpp index bb3bca8..eeb834f 100644 --- a/lib/TTLS/src/Method.cpp +++ b/lib/TTLS/src/Method.cpp @@ -178,7 +178,7 @@ void eap::method_ttls::get_response_attributes(_Inout_ EapAttributes *pAttribs) void eap::method_ttls::set_response_attributes( _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput) + _Out_ EapPeerMethodOutput *pEapOutput) { UNREFERENCED_PARAMETER(pAttribs); UNREFERENCED_PARAMETER(pEapOutput); diff --git a/lib/TTLS/src/Module.cpp b/lib/TTLS/src/Module.cpp index cff8e43..e41d9b5 100644 --- a/lib/TTLS/src/Module.cpp +++ b/lib/TTLS/src/Module.cpp @@ -331,9 +331,9 @@ void eap::peer_ttls::get_response_attributes( void eap::peer_ttls::set_response_attributes( - _In_ EAP_SESSION_HANDLE hSession, - _In_ const EapAttributes *pAttribs, - _Inout_ EapPeerMethodOutput *pEapOutput) + _In_ EAP_SESSION_HANDLE hSession, + _In_ const EapAttributes *pAttribs, + _Out_ EapPeerMethodOutput *pEapOutput) { static_cast(hSession)->m_method->set_response_attributes(pAttribs, pEapOutput); }