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

Unified Diff: net/ssl/ssl_platform_key_chromecast.cc

Issue 2822283002: Remove SSLPrivateKey metadata hooks. (Closed)
Patch Set: emaxx comment Created 3 years, 8 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 | « net/ssl/ssl_platform_key_android_unittest.cc ('k') | net/ssl/ssl_platform_key_mac.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 5993a3bbe3e3727484567ee3c2ee492543c459ce..1b4d2da3c807460f2abb069fb651f1d6de968d01 100644
--- a/net/ssl/ssl_platform_key_chromecast.cc
+++ b/net/ssl/ssl_platform_key_chromecast.cc
@@ -38,20 +38,11 @@ class SSLPlatformKeyChromecast : public ThreadedSSLPrivateKey::Delegate {
: key_(std::move(key)) {}
~SSLPlatformKeyChromecast() override {}
- SSLPrivateKey::Type GetType() override { return SSLPrivateKey::Type::RSA; }
-
std::vector<SSLPrivateKey::Hash> GetDigestPreferences() override {
return std::vector<SSLPrivateKey::Hash>{SSLPrivateKey::Hash::SHA256,
SSLPrivateKey::Hash::SHA1};
}
- size_t GetMaxSignatureLengthInBytes() override {
- int len = PK11_SignatureLen(key_.get());
- if (len <= 0)
- return 0;
- return static_cast<size_t>(len);
- }
-
Error SignDigest(SSLPrivateKey::Hash hash,
const base::StringPiece& input,
std::vector<uint8_t>* signature) override {
« no previous file with comments | « net/ssl/ssl_platform_key_android_unittest.cc ('k') | net/ssl/ssl_platform_key_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698