1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix RSNInformation issues on big endian architectures

This commit is contained in:
Matias Fontanini
2015-12-08 08:36:24 -08:00
parent a35b086d12
commit 45546eee39
2 changed files with 25 additions and 19 deletions

View File

@@ -147,19 +147,21 @@ public:
* \brief Getter for the group suite field.
* \return The group suite field.
*/
CypherSuites group_suite() const { return _group_suite; }
CypherSuites group_suite() const {
return static_cast<CypherSuites>(Endian::le_to_host<uint32_t>(_group_suite));
}
/**
* \brief Getter for the version field.
* \return The version field.
*/
uint16_t version() const { return _version; }
uint16_t version() const { return Endian::le_to_host(_version); }
/**
* \brief Getter for the capabilities field.
* \return The version field.
*/
uint16_t capabilities() const { return _capabilities; }
uint16_t capabilities() const { return Endian::le_to_host(_capabilities); }
/**
* \brief Getter for the pairwise cypher suite list.