Bug 265898. Replace mono based cli with native based one.
This was needed to support changing the UID
This commit is contained in:
@@ -449,11 +449,13 @@ static int32_t sscsshs_UnescapeSecretIDBuf
|
||||
|
||||
do
|
||||
{ // determine the type of secret
|
||||
if((sscs_Utf8Strncmp(secID->id, SSCS_CRED_SET_DELIMITED, SSCS_CRED_SET_CHARS_DELIMITED)) == 0)
|
||||
if((sscs_Utf8Strncmp(secID->id, SSCS_CRED_SET_DELIMITED, SSCS_CRED_SET_CHARS_DELIMITED-1)) == 0)
|
||||
{
|
||||
shSecID->type |= SSCS_CREDENTIAL_TYPE_F;
|
||||
tmpSecID.len = SSCS_CRED_SET_CHARS_DELIMITED;
|
||||
sscs_Utf8Strncpy(tmpSecID.id, secID->id, SSCS_CRED_SET_CHARS_DELIMITED);
|
||||
//sscs_Utf8Strncpy(tmpSecID.id, secID->id, SSCS_CRED_SET_CHARS_DELIMITED);
|
||||
//strncpy(tmpSecID.id, secID->id, SSCS_CRED_SET_CHARS_DELIMITED);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -479,7 +481,7 @@ static int32_t sscsshs_UnescapeSecretIDBuf
|
||||
while(1);
|
||||
|
||||
// start passed the tag
|
||||
for(k = i = tmpSecID.len; i < len; i++)
|
||||
for(k=0, i=tmpSecID.len - 1; i <= len; i++)
|
||||
{
|
||||
rc = NSSCS_SUCCESS;
|
||||
if(secID->id[i] == (SS_UTF8_T)'\\')
|
||||
@@ -505,7 +507,7 @@ static int32_t sscsshs_UnescapeSecretIDBuf
|
||||
}
|
||||
} // end for ...
|
||||
|
||||
shSecID->len = tmpSecID.len + k - 1;
|
||||
shSecID->len = k-1; //tmpSecID.len + k - 1;
|
||||
sscs_Utf8Strncpy(shSecID->name, tmpSecID.id, shSecID->len);
|
||||
// shSecID->len = k;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user