diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-05-14 10:43:43 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-05-14 11:05:49 +0200 |
commit | 0e74cf1b42b239e26d21b531e6ba3694e6f9361c (patch) | |
tree | 9af9f135bf1682286e97ec074d52f659910ef056 /sqv | |
parent | ec19b193720cca4529dc0bb109e615dff7a5959f (diff) |
openpgp, openpgp-ffi: Normalize TPK::revoked()
- `TPK::revoked` returns a revocation status, not a boolean. Rename
it to `TPK::revocation_status()`, like it is called in the FFI.
- Like other methods, provide a `foo_at()` method and a `foo()`
method.
Diffstat (limited to 'sqv')
-rw-r--r-- | sqv/src/sqv.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs index 1ab6568d..873ca9e8 100644 --- a/sqv/src/sqv.rs +++ b/sqv/src/sqv.rs @@ -273,7 +273,9 @@ fn real_main() -> Result<(), failure::Error> { } } - if tpk.revoked(t) != RevocationStatus::NotAsFarAsWeKnow { + if tpk.revocation_status_at(t) + != RevocationStatus::NotAsFarAsWeKnow + { eprintln!( "Primary key was revoked when the \ signature was created."); |