mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 05:42:19 -04:00
added missing timestamp at message creation time and group creation time
This commit is contained in:
parent
f702c942ed
commit
3f132f2c33
1 changed files with 13 additions and 16 deletions
|
@ -661,23 +661,20 @@ int RsGenExchange::createMsgSignatures(RsTlvKeySignatureSet& signSet, RsTlvBinar
|
||||||
bool haveKey = mGixs->havePrivateKey(msgMeta.mAuthorId);
|
bool haveKey = mGixs->havePrivateKey(msgMeta.mAuthorId);
|
||||||
|
|
||||||
if(haveKey)
|
if(haveKey)
|
||||||
{
|
{
|
||||||
RsTlvSecurityKey authorKey;
|
RsTlvSecurityKey authorKey;
|
||||||
mGixs->getPrivateKey(msgMeta.mAuthorId, authorKey);
|
mGixs->getPrivateKey(msgMeta.mAuthorId, authorKey);
|
||||||
RsTlvKeySignature sign;
|
RsTlvKeySignature sign;
|
||||||
|
|
||||||
if(GxsSecurity::getSignature((char*)msgData.bin_data, msgData.bin_len,
|
if(GxsSecurity::getSignature((char*)msgData.bin_data, msgData.bin_len, authorKey, sign))
|
||||||
authorKey, sign))
|
{
|
||||||
{
|
id_ret = SIGN_SUCCESS;
|
||||||
id_ret = SIGN_SUCCESS;
|
mGixs->timeStampKey(msgMeta.mAuthorId) ;
|
||||||
}
|
signSet.keySignSet[INDEX_AUTHEN_IDENTITY] = sign;
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
id_ret = SIGN_FAIL;
|
id_ret = SIGN_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
signSet.keySignSet[INDEX_AUTHEN_IDENTITY] = sign;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mGixs->requestPrivateKey(msgMeta.mAuthorId);
|
mGixs->requestPrivateKey(msgMeta.mAuthorId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue