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

Unified Diff: content/child/webcrypto/status.cc

Issue 282133002: [webcryto] Validate key usages during key creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index 4fbfd709874742f69c7b412c2de030c311bee196..ad28cd78bf98045bcef40288fab2562c5e39d262 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -198,6 +198,11 @@ Status Status::ErrorGenerateKeyLength() {
"bits");
}
+Status Status::ErrorCreateKeyBadUsages() {
+ return Status(blink::WebCryptoErrorTypeData,
+ "Cannot create key with the requested key usages");
+}
+
Status::Status(blink::WebCryptoErrorType error_type,
const std::string& error_details_utf8)
: type_(TYPE_ERROR),

Powered by Google App Engine
This is Rietveld 408576698