mirror of
https://github.com/RetroShare/libretroshare.git
synced 2026-09-14 11:05:45 +05:00
fixed certificate pasting bug
This commit is contained in:
parent
ac742c869a
commit
57042ff63e
@ -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 ;
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user