Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: webrtc/base/helpers.cc

Issue 2115123002: Remove NSS SecureRandomGenerator. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/helpers.cc
diff --git a/webrtc/base/helpers.cc b/webrtc/base/helpers.cc
index 0a39ee923e1d61b3db9fa6399aee34049595fff6..f39b56ff4f1ceb39ae73fea72bc3f068bcddb5da 100644
--- a/webrtc/base/helpers.cc
+++ b/webrtc/base/helpers.cc
@@ -56,19 +56,6 @@ class SecureRandomGenerator : public RandomGenerator {
}
};
-#elif defined(SSL_USE_NSS_RNG)
-// The NSS RNG.
-class SecureRandomGenerator : public RandomGenerator {
- public:
- SecureRandomGenerator() {}
- ~SecureRandomGenerator() override {}
- bool Init(const void* seed, size_t len) override { return true; }
- bool Generate(void* buf, size_t len) override {
- return (PK11_GenerateRandom(reinterpret_cast<unsigned char*>(buf),
- static_cast<int>(len)) == SECSuccess);
- }
-};
-
#else
#if defined(WEBRTC_WIN)
class SecureRandomGenerator : public RandomGenerator {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698