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

Unified Diff: content/child/webcrypto/openssl/rsa_key_openssl.cc

Issue 689883002: Throw a SyntaxError when importing keys with invalid usages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | content/child/webcrypto/status.h » ('j') | content/child/webcrypto/status.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/openssl/rsa_key_openssl.cc
diff --git a/content/child/webcrypto/openssl/rsa_key_openssl.cc b/content/child/webcrypto/openssl/rsa_key_openssl.cc
index 554b55c726857846d1b07a4fede0863dc5f622e7..350956725aeaa59bfc5ee10629b5eb92e506a092 100644
--- a/content/child/webcrypto/openssl/rsa_key_openssl.cc
+++ b/content/child/webcrypto/openssl/rsa_key_openssl.cc
@@ -328,7 +328,7 @@ Status RsaHashedAlgorithm::VerifyKeyUsagesBeforeImportKey(
.IsSuccess()) {
return Status::Success();
}
- return Status::ErrorCreateKeyBadUsages();
+ return Status::SyntaxError("usages");
default:
return Status::ErrorUnsupportedImportKeyFormat();
}
« no previous file with comments | « no previous file | content/child/webcrypto/status.h » ('j') | content/child/webcrypto/status.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698