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

Unified Diff: net/ssl/ssl_platform_key_chromecast.cc

Issue 2577683002: Add unit tests for NSS-backed SSLPrivateKeys. (Closed)
Patch Set: build issues Created 4 years 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 | « net/net.gypi ('k') | net/ssl/ssl_platform_key_chromecast_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_platform_key_chromecast.cc
diff --git a/net/ssl/ssl_platform_key_chromecast.cc b/net/ssl/ssl_platform_key_chromecast.cc
index b913e77f828c16fed95e330481d9d25f8ca5844a..5993a3bbe3e3727484567ee3c2ee492543c459ce 100644
--- a/net/ssl/ssl_platform_key_chromecast.cc
+++ b/net/ssl/ssl_platform_key_chromecast.cc
@@ -41,11 +41,8 @@ class SSLPlatformKeyChromecast : public ThreadedSSLPrivateKey::Delegate {
SSLPrivateKey::Type GetType() override { return SSLPrivateKey::Type::RSA; }
std::vector<SSLPrivateKey::Hash> GetDigestPreferences() override {
- static const SSLPrivateKey::Hash kHashes[] = {
- SSLPrivateKey::Hash::SHA256, SSLPrivateKey::Hash::SHA1,
- SSLPrivateKey::Hash::MD5_SHA1};
davidben 2016/12/14 16:03:06 MD5-SHA1 is weird and isn't advertised. (Doesn't m
- return std::vector<SSLPrivateKey::Hash>(kHashes,
- kHashes + arraysize(kHashes));
+ return std::vector<SSLPrivateKey::Hash>{SSLPrivateKey::Hash::SHA256,
+ SSLPrivateKey::Hash::SHA1};
}
size_t GetMaxSignatureLengthInBytes() override {
« no previous file with comments | « net/net.gypi ('k') | net/ssl/ssl_platform_key_chromecast_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698