Fixes bug in isRevoked, removes isValidSelfCertificate, adds verifyCertificate
This commit is contained in:
parent
d02b9c7bf0
commit
2d1a1130d7
|
@ -232,9 +232,9 @@ describe('X25519 Cryptography', function () {
|
||||||
expect(user.selfCertifications[0].verify(
|
expect(user.selfCertifications[0].verify(
|
||||||
primaryKey, {userid: user.userId, key: primaryKey}
|
primaryKey, {userid: user.userId, key: primaryKey}
|
||||||
)).to.eventually.be.true;
|
)).to.eventually.be.true;
|
||||||
expect(user.isValidSelfCertificate(
|
expect(user.verifyCertificate(
|
||||||
primaryKey, user.selfCertifications[0]
|
primaryKey, user.selfCertifications[0], [hi.toPublic()]
|
||||||
)).to.eventually.be.true;
|
)).to.eventually.equal(openpgp.enums.keyStatus.valid);
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
userIds: {name: "Bye", email: "bye@good.bye"},
|
userIds: {name: "Bye", email: "bye@good.bye"},
|
||||||
|
@ -252,9 +252,9 @@ describe('X25519 Cryptography', function () {
|
||||||
expect(user.selfCertifications[0].verify(
|
expect(user.selfCertifications[0].verify(
|
||||||
bye.primaryKey, {userid: user.userId, key: bye.primaryKey}
|
bye.primaryKey, {userid: user.userId, key: bye.primaryKey}
|
||||||
)).to.eventually.be.true;
|
)).to.eventually.be.true;
|
||||||
expect(user.isValidSelfCertificate(
|
expect(user.verifyCertificate(
|
||||||
bye.primaryKey, user.selfCertifications[0]
|
bye.primaryKey, user.selfCertifications[0], [bye.toPublic()]
|
||||||
)).to.eventually.be.true;
|
)).to.eventually.equal(openpgp.enums.keyStatus.valid);
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
// Hi trusts Bye!
|
// Hi trusts Bye!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user