Backed out changeset d1f3d30546a1 (bug 1333044)

--HG--
extra : rebase_source : 272f382a06733b065cec30d2bdcec282ef847297
This commit is contained in:
Carsten "Tomcat" Book 2017-01-25 15:29:31 +01:00
parent b994a9eca5
commit 514a5e3a68
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ function base64UrlDecode(s) {
s += "=";
break; // One pad char
default:
throw new Error("Illegal base64url string!");
throw new InputException("Illegal base64url string!");
}
// With correct padding restored, apply the standard base64 decoder

View File

@ -62,7 +62,7 @@ function test_rsa() {
do_test_pending();
function checkRSA(err, kpo) {
do_check_neq(kpo, undefined);
do_print(kpo.serializedPublicKey);
log(kpo.serializedPublicKey);
let pk = JSON.parse(kpo.serializedPublicKey);
do_check_eq(pk.algorithm, "RS");
/* TODO
@ -92,7 +92,7 @@ function test_dsa() {
do_test_pending();
function checkDSA(err, kpo) {
do_check_neq(kpo, undefined);
do_print(kpo.serializedPublicKey);
log(kpo.serializedPublicKey);
let pk = JSON.parse(kpo.serializedPublicKey);
do_check_eq(pk.algorithm, "DS");
/* TODO