Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3301028
D11836.id39661.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
900 B
Referenced Files
None
Subscribers
None
D11836.id39661.diff
View Options
diff --git a/native/cpp/CommonCpp/CryptoTools/Session.cpp b/native/cpp/CommonCpp/CryptoTools/Session.cpp
--- a/native/cpp/CommonCpp/CryptoTools/Session.cpp
+++ b/native/cpp/CommonCpp/CryptoTools/Session.cpp
@@ -154,7 +154,7 @@
". Hash: " +
std::string{messageHashBuffer.begin(), messageHashBuffer.end()}};
}
- return std::string{(char *)decryptedMessage.data(), decryptedSize};
+ return std::string{decryptedMessage.begin(), decryptedMessage.end()};
}
std::string Session::decryptSequential(EncryptedData &encryptedData) {
@@ -199,7 +199,7 @@
std::string{::olm_session_last_error(session)} + ". Hash: " +
std::string{messageHashBuffer.begin(), messageHashBuffer.end()}};
}
- return std::string{(char *)decryptedMessage.data(), decryptedSize};
+ return std::string{decryptedMessage.begin(), decryptedMessage.end()};
}
int Session::getVersion() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 11:24 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2536126
Default Alt Text
D11836.id39661.diff (900 B)
Attached To
Mode
D11836: [CryptoModule] remove `(char *)` casting
Attached
Detach File
Event Timeline
Log In to Comment