fixed certificate pasting bug

This commit is contained in:
Cyril Soler 2022-03-09 21:30:25 +01:00
parent ac742c869a
commit 57042ff63e
2 changed files with 7 additions and 0 deletions

View File

@ -157,6 +157,12 @@ std::string RsCertificate::toStdString(RetroshareInviteFlags flags) const
Radix64::encode(buf, p, out_string) ;
if(!(flags & RetroshareInviteFlags::SLICE_TO_80_CHARS))
{
delete[] buf;
return out_string;
}
// Now slice up to 64 chars.
//
std::string out2 ;

View File

@ -520,6 +520,7 @@ enum class RetroshareInviteFlags:uint32_t {
RADIX_FORMAT = 0x08,
PGP_SIGNATURES = 0x10,
CURRENT_EXTERNAL_IP = 0x20,
SLICE_TO_80_CHARS = 0x40,
ALL = 0xff,
};
RS_REGISTER_ENUM_FLAGS_TYPE(RetroshareInviteFlags)