mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Backed out changeset d1f3d30546a1 (bug 1333044)
--HG-- extra : rebase_source : 272f382a06733b065cec30d2bdcec282ef847297
This commit is contained in:
parent
b994a9eca5
commit
514a5e3a68
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user