doubled data chunk for signature in chat links. Apparently some keys need more than 287 bytes.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6535 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-07-23 20:57:05 +00:00
parent 6dc9dcd49d
commit 504ab562cc

View File

@ -3271,7 +3271,7 @@ bool p3ChatService::createDistantChatInvite(const std::string& pgp_id,time_t tim
// retroshare://chat?time_stamp=3243242&private_data=[radix64 string] // retroshare://chat?time_stamp=3243242&private_data=[radix64 string]
uint32_t header_size = DISTANT_CHAT_AES_KEY_SIZE + DISTANT_CHAT_HASH_SIZE + KEY_ID_SIZE; uint32_t header_size = DISTANT_CHAT_AES_KEY_SIZE + DISTANT_CHAT_HASH_SIZE + KEY_ID_SIZE;
unsigned char *data = new unsigned char[header_size+400] ; unsigned char *data = new unsigned char[header_size+800] ;
PGPIdType OwnId(AuthGPG::getAuthGPG()->getGPGOwnId()); PGPIdType OwnId(AuthGPG::getAuthGPG()->getGPGOwnId());
@ -3282,7 +3282,7 @@ bool p3ChatService::createDistantChatInvite(const std::string& pgp_id,time_t tim
#ifdef DEBUG_DISTANT_CHAT #ifdef DEBUG_DISTANT_CHAT
std::cerr << "Performing signature " << std::endl; std::cerr << "Performing signature " << std::endl;
#endif #endif
uint32_t signlen = 400; uint32_t signlen = 800;
if(!AuthGPG::getAuthGPG()->SignDataBin(data,header_size,data+header_size,&signlen)) if(!AuthGPG::getAuthGPG()->SignDataBin(data,header_size,data+header_size,&signlen))
return false ; return false ;