Page MenuHomePhabricator

D6779.diff
No OneTemporary

D6779.diff

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

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)

Event Timeline