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:
parent
ca5c7648f4
commit
e0e79a26cf
@ -21,7 +21,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SAM_BUFSIZE 65536
|
#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
|
namespace SAM
|
||||||
{
|
{
|
||||||
@ -417,7 +417,7 @@ FullDestination StreamSession::createStreamSession(const std::string& destinatio
|
|||||||
fallSick();
|
fallSick();
|
||||||
return FullDestination();
|
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
|
void StreamSession::fallSick() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user