mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 21:51:51 +00:00
use string/string_view for base64
This commit is contained in:
1 parent
e0a21cf702
commit
93cc810f29
9 files changed
+142
-120
No files matched your search
+1
-3
@@ -951,9 +951,7 @@ namespace data
|
||||
LogPrint (eLogError, "NetDb: DatabaseLookup for zero ident. Ignored");
|
||||
return;
|
||||
}
|
||||
char key[48];
|
||||
int l = i2p::data::ByteStreamToBase64 (buf, 32, key, 48);
|
||||
key[l] = 0;
|
||||
auto key = i2p::data::ByteStreamToBase64 (buf, 32);
|
||||
|
||||
IdentHash replyIdent(buf + 32);
|
||||
uint8_t flag = buf[64];
|
||||
|
||||
Reference in new issue
Block a user