pack() => operator <<, unpack() => operator >>, get_pk_size() => pksizeof()
This commit is contained in:
@@ -233,28 +233,28 @@ bool eap::credentials_pass::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR
|
||||
}
|
||||
|
||||
|
||||
void eap::credentials_pass::pack(_Inout_ eapserial::cursor_out &cursor) const
|
||||
void eap::credentials_pass::operator<<(_Inout_ cursor_out &cursor) const
|
||||
{
|
||||
eap::credentials::pack(cursor);
|
||||
eapserial::pack(cursor, m_identity);
|
||||
eapserial::pack(cursor, m_password);
|
||||
credentials::operator<<(cursor);
|
||||
cursor << m_identity;
|
||||
cursor << m_password;
|
||||
}
|
||||
|
||||
|
||||
size_t eap::credentials_pass::get_pk_size() const
|
||||
{
|
||||
return
|
||||
eap::credentials::get_pk_size() +
|
||||
eapserial::get_pk_size(m_identity) +
|
||||
eapserial::get_pk_size(m_password);
|
||||
credentials::get_pk_size() +
|
||||
pksizeof(m_identity) +
|
||||
pksizeof(m_password);
|
||||
}
|
||||
|
||||
|
||||
void eap::credentials_pass::unpack(_Inout_ eapserial::cursor_in &cursor)
|
||||
void eap::credentials_pass::operator>>(_Inout_ cursor_in &cursor)
|
||||
{
|
||||
eap::credentials::unpack(cursor);
|
||||
eapserial::unpack(cursor, m_identity);
|
||||
eapserial::unpack(cursor, m_password);
|
||||
credentials::operator>>(cursor);
|
||||
cursor >> m_identity;
|
||||
cursor >> m_password;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user