Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / child / webcrypto / status.cc
index b3f7c3c..a7afdb3 100644 (file)
@@ -116,6 +116,12 @@ Status Status::ErrorJwkBigIntegerHasLeadingZero(const std::string& property) {
       "The JWK \"" + property + "\" property contained a leading zero.");
 }
 
+Status Status::ErrorJwkDuplicateKeyOps() {
+  return Status(blink::WebCryptoErrorTypeData,
+                "The \"key_ops\" property of the JWK dictionary contains "
+                "duplicate usages.");
+}
+
 Status Status::ErrorImportEmptyKeyData() {
   return Status(blink::WebCryptoErrorTypeData, "No key data was provided");
 }
@@ -233,7 +239,7 @@ Status Status::ErrorGenerateKeyLength() {
 }
 
 Status Status::ErrorCreateKeyBadUsages() {
-  return Status(blink::WebCryptoErrorTypeData,
+  return Status(blink::WebCryptoErrorTypeSyntax,
                 "Cannot create a key using the specified key usages.");
 }