[Verification] Code compiles without errors.
Change-Id: If3d259eb491b4ea5295f468bc6b0ee78de29e9a1
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
picojson::object result;
result["name"] = picojson::value(key_alias);
- result["password"] = picojson::value(key->password);
+ if (key->password) {
+ result["password"] = picojson::value(key->password);
+ }
+
// if key was retrieved it is extractable from DB
result["extractable"] = picojson::value(true);
result["keyType"] = picojson::value(KeyTypeToString(key->key_type));