From 504ab562cce6fc1006a6717d9dabc64589ab2a86 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 23 Jul 2013 20:57:05 +0000 Subject: [PATCH] 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 --- libretroshare/src/services/p3chatservice.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/services/p3chatservice.cc b/libretroshare/src/services/p3chatservice.cc index 4790cd731..1da00ca6a 100644 --- a/libretroshare/src/services/p3chatservice.cc +++ b/libretroshare/src/services/p3chatservice.cc @@ -3271,7 +3271,7 @@ bool p3ChatService::createDistantChatInvite(const std::string& pgp_id,time_t tim // 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; - unsigned char *data = new unsigned char[header_size+400] ; + unsigned char *data = new unsigned char[header_size+800] ; PGPIdType OwnId(AuthGPG::getAuthGPG()->getGPGOwnId()); @@ -3282,7 +3282,7 @@ bool p3ChatService::createDistantChatInvite(const std::string& pgp_id,time_t tim #ifdef DEBUG_DISTANT_CHAT std::cerr << "Performing signature " << std::endl; #endif - uint32_t signlen = 400; + uint32_t signlen = 800; if(!AuthGPG::getAuthGPG()->SignDataBin(data,header_size,data+header_size,&signlen)) return false ;