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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 308773007: Merge 273573 "Always call talk_base::InitializeSSL() in chromoti..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1985/src/
Patch Set: Created 6 years, 7 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: remoting/client/plugin/chromoting_instance.cc
===================================================================
--- remoting/client/plugin/chromoting_instance.cc (revision 274099)
+++ remoting/client/plugin/chromoting_instance.cc (working copy)
@@ -222,9 +222,12 @@
char random_seed[kRandomSeedSize];
crypto::RandBytes(random_seed, sizeof(random_seed));
talk_base::InitRandom(random_seed, sizeof(random_seed));
-#elif defined(USE_NSS)
+#else
+ // Libjingle's SSL implementation is not really used, but it has to be
+ // initialized for NSS builds to make sure that RNG is initialized in NSS,
+ // because libjingle uses it.
talk_base::InitializeSSL();
-#endif // defined(USE_NSS)
+#endif // !defined(USE_OPENSSL)
// Send hello message.
scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
« 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