Unused winstd::eap_packet methods removed
This commit is contained in:
parent
4b63d60b01
commit
d82a31e543
@ -269,84 +269,6 @@ namespace winstd
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Create new EAP Request packet
|
|
||||||
///
|
|
||||||
/// \param[in] id Packet ID
|
|
||||||
/// \param[in] type Protocol ID
|
|
||||||
/// \param[in] flags Request flags
|
|
||||||
/// \param[in] size Initial packet size. Must be at least 6.
|
|
||||||
///
|
|
||||||
/// \note Packet data (beyond first 6B) is not initialized.
|
|
||||||
///
|
|
||||||
/// \return
|
|
||||||
/// - true when creation succeeds;
|
|
||||||
/// - false when creation fails. For extended error information, call `GetLastError()`.
|
|
||||||
///
|
|
||||||
inline bool create_request(_In_ BYTE id, _In_ eap_type_t type, _In_ BYTE flags, _In_opt_ WORD size = 6)
|
|
||||||
{
|
|
||||||
assert(size >= 6); // EAP Request packets must contain at least 6B.
|
|
||||||
|
|
||||||
if (!create(EapCodeRequest, id, size))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
m_h->Data[0] = (BYTE)type;
|
|
||||||
m_h->Data[1] = flags;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Create new EAP Response packet
|
|
||||||
///
|
|
||||||
/// \param[in] id Packet ID
|
|
||||||
/// \param[in] type Protocol ID
|
|
||||||
/// \param[in] flags Response flags
|
|
||||||
/// \param[in] size Initial packet size. Must be at least 6.
|
|
||||||
///
|
|
||||||
/// \note Packet data (beyond first 6B) is not initialized.
|
|
||||||
///
|
|
||||||
/// \return
|
|
||||||
/// - true when creation succeeds;
|
|
||||||
/// - false when creation fails. For extended error information, call `GetLastError()`.
|
|
||||||
///
|
|
||||||
inline bool create_response(_In_ BYTE id, _In_ eap_type_t type, _In_ BYTE flags, _In_opt_ WORD size = 6)
|
|
||||||
{
|
|
||||||
assert(size >= 6); // EAP Response packets must contain at least 6B.
|
|
||||||
|
|
||||||
if (!create(EapCodeResponse, id, size))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
m_h->Data[0] = (BYTE)type;
|
|
||||||
m_h->Data[1] = flags;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Create Accept EAP packet
|
|
||||||
///
|
|
||||||
/// \param[in] id ID of EAP packet this packet is rejecting
|
|
||||||
///
|
|
||||||
inline bool create_accept(_In_ BYTE id)
|
|
||||||
{
|
|
||||||
return create(EapCodeSuccess, id + 1, 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Create Reject EAP packet
|
|
||||||
///
|
|
||||||
/// \param[in] id ID of EAP packet this packet is rejecting
|
|
||||||
///
|
|
||||||
inline bool create_reject(_In_ BYTE id)
|
|
||||||
{
|
|
||||||
return create(EapCodeFailure, id + 1, 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Returns total EAP packet size in bytes.
|
/// Returns total EAP packet size in bytes.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user