Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33051092
D6779.1768424074.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
909 B
Referenced Files
None
Subscribers
None
D6779.1768424074.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
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)
Attached To
Mode
D6779: Implement utility method to remove notifications olm account storage
Attached
Detach File
Event Timeline
Log In to Comment