Commit 60b6b981 authored by xun.sun's avatar xun.sun Committed by Commit bot

Throw a SyntaxError when importing keys with invalid usages

BUG=425651
R=eroman@chromium.org

Review URL: https://codereview.chromium.org/689883002

Cr-Commit-Position: refs/heads/master@{#302696}
parent f88052ff
...@@ -239,7 +239,7 @@ Status Status::ErrorGenerateKeyLength() { ...@@ -239,7 +239,7 @@ Status Status::ErrorGenerateKeyLength() {
} }
Status Status::ErrorCreateKeyBadUsages() { Status Status::ErrorCreateKeyBadUsages() {
return Status(blink::WebCryptoErrorTypeData, return Status(blink::WebCryptoErrorTypeSyntax,
"Cannot create a key using the specified key usages."); "Cannot create a key using the specified key usages.");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment