| Index: content/child/webcrypto/jwk.cc
|
| ===================================================================
|
| --- content/child/webcrypto/jwk.cc (revision 256983)
|
| +++ content/child/webcrypto/jwk.cc (working copy)
|
| @@ -512,8 +512,9 @@
|
| extractable,
|
| usage_mask,
|
| key);
|
| - } else if (jwk_kty_value == "RSA") {
|
| + }
|
|
|
| + if (jwk_kty_value == "RSA") {
|
| // An RSA public key must have an "n" (modulus) and an "e" (exponent) entry
|
| // in the JWK, while an RSA private key must have those, plus at least a "d"
|
| // (private exponent) entry.
|
| @@ -542,11 +543,9 @@
|
| CryptoData(jwk_e_value),
|
| key);
|
|
|
| - } else {
|
| - return Status::ErrorJwkUnrecognizedKty();
|
| }
|
|
|
| - return Status::Success();
|
| + return Status::ErrorJwkUnrecognizedKty();
|
| }
|
|
|
| } // namespace webcrypto
|
|
|