summaryrefslogtreecommitdiffstats
path: root/command/rakp12.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/rakp12.cpp')
-rw-r--r--command/rakp12.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/command/rakp12.cpp b/command/rakp12.cpp
index 19dc160..e5ea3a7 100644
--- a/command/rakp12.cpp
+++ b/command/rakp12.cpp
@@ -113,8 +113,7 @@ std::vector<uint8_t> RAKP12(const std::vector<uint8_t>& inPayload,
std::advance(iter, cipher::rakp_auth::BMC_RANDOM_NUMBER_LEN);
// Managed System GUID
- auto guid = getSystemGUID();
- std::copy_n(guid.data(), guid.size(), iter);
+ std::copy_n(cache::guid.data(), cache::guid.size(), iter);
std::advance(iter, BMC_GUID_LEN);
// Requested Privilege Level
@@ -144,7 +143,9 @@ std::vector<uint8_t> RAKP12(const std::vector<uint8_t>& inPayload,
response->managed_system_random_number);
// Copy System GUID to the Response
- std::copy_n(guid.data(), guid.size(), response->managed_system_guid);
+ std::copy_n(cache::guid.data(),
+ cache::guid.size(),
+ response->managed_system_guid);
// Insert the HMAC output into the payload
outPayload.insert(outPayload.end(), output.begin(), output.end());
OpenPOWER on IntegriCloud