Finished making changes for the non-persistent key feature.
This commit is contained in:
parent
b03293da31
commit
3c32748c2e
@ -793,6 +793,10 @@ namespace sscs.lss
|
||||
{
|
||||
string sKey = (string)etor.Key;
|
||||
KeyValue kv = secret.GetKeyValue(sKey);
|
||||
if (!kv.IsPersistent)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
string value = kv.GetValue();
|
||||
writer.WriteStartElement(XmlConsts.keyNode);
|
||||
@ -804,7 +808,7 @@ namespace sscs.lss
|
||||
|
||||
writer.WriteStartElement(XmlConsts.keyValueNode);
|
||||
|
||||
if (kv.IsPersistent && bSaveValues)
|
||||
if (bSaveValues)
|
||||
{
|
||||
if (kv.GetValueType() == KeyValue.VALUE_TYPE_BINARY)
|
||||
{
|
||||
|
@ -163,7 +163,15 @@ namespace sscs.verbs
|
||||
else
|
||||
{
|
||||
secret = keyChain.GetSecret(secretId);
|
||||
val = secret.GetKeyValue(key).GetValueAsBytes();
|
||||
KeyValue kv = secret.GetKeyValue(key);
|
||||
if (kv != null)
|
||||
{
|
||||
val = kv.GetValueAsBytes();
|
||||
}
|
||||
else
|
||||
{
|
||||
retCode = IPCRetCodes.SSCS_E_SECRETID_DOES_NOT_EXIST;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user