Page MenuHomePhorge

D6779.1768424074.diff
No OneTemporary

Size
909 B
Referenced Files
None
Subscribers
None

D6779.1768424074.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
Wed, Jan 14, 8:54 PM (12 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5933955
Default Alt Text
D6779.1768424074.diff (909 B)

Event Timeline