1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-03-13 05:41:11 +00:00

extract correct base64 address

This commit is contained in:
orignal 2017-03-27 19:03:04 -04:00
parent ca5c7648f4
commit e0e79a26cf

View File

@ -21,7 +21,7 @@
#endif
#define SAM_BUFSIZE 65536
#define I2P_DESTINATION_SIZE 524 // EcDSA, GOST and EdDSA
#define I2P_DESTINATION_SIZE 521 // EcDSA, GOST and EdDSA, actual size is 224 with trailing A==
namespace SAM
{
@ -417,7 +417,7 @@ FullDestination StreamSession::createStreamSession(const std::string& destinatio
fallSick();
return FullDestination();
}
return FullDestination(answer.value.substr(0, I2P_DESTINATION_SIZE), answer.value, (destination == SAM_GENERATE_MY_DESTINATION));
return FullDestination(answer.value.substr(0, I2P_DESTINATION_SIZE) + "A==", answer.value, (destination == SAM_GENERATE_MY_DESTINATION));
}
void StreamSession::fallSick() const