Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3380261
D6779.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
909 B
Referenced Files
None
Subscribers
None
D6779.diff
View Options
diff --git a/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp b/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp
--- a/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp
+++ b/native/cpp/CommonCpp/Notifications/BackgroundDataStorage/NotificationsCryptoModule.cpp
@@ -172,4 +172,14 @@
path, picklingKey.value());
return cryptoModule.getIdentityKeys();
}
+
+void NotificationsCryptoModule::clearSensitiveData() {
+ std::string notificationsCryptoAccountPath =
+ PlatformSpecificTools::getNotificationsCryptoAccountPath();
+ if (remove(notificationsCryptoAccountPath.c_str()) == -1 && errno != ENOENT) {
+ throw std::runtime_error(
+ "Unable to remove notifications crypto account. Security requirements "
+ "might be violated.");
+ }
+}
} // namespace comm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 10:33 PM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595042
Default Alt Text
D6779.diff (909 B)
Attached To
Mode
D6779: Implement utility method to remove notifications olm account storage
Attached
Detach File
Event Timeline
Log In to Comment