From 8714925d90b31e320d75f5c2866cd786d343e40c Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Mon, 11 May 2020 11:22:05 +0200 Subject: [PATCH] Fix async symmetric key getter Symmetric keys were not properly returned to the caller. Change-Id: Ibe0f6a98d57250f8d29cde8b16abce0270fb59b3 --- src/manager/client-async/storage-receiver.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/manager/client-async/storage-receiver.cpp b/src/manager/client-async/storage-receiver.cpp index e282dfa..9dd95a8 100644 --- a/src/manager/client-async/storage-receiver.cpp +++ b/src/manager/client-async/storage-receiver.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -124,8 +125,9 @@ void StorageReceiver::parseGetCommand() } DataType type(dataType); - - if (type.isKey()) + if (type.isSKey()) + m_observer->ReceivedKey(KeyAESImpl(rawData)); + else if (type.isKey()) m_observer->ReceivedKey(KeyImpl(rawData)); else if (type.isCertificate()) m_observer->ReceivedCertificate(CertificateImpl(rawData, DataFormat::FORM_DER)); -- 2.7.4