diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-05-06 09:28:48 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-05-08 08:43:08 +0200 |
commit | 5611f1af65b382e65b6fefc0213dd8bf80ad6dce (patch) | |
tree | 0a838e1bc1859ee532c1a1f76ec789bcd278d6bd /openpgp-ffi/src | |
parent | 190be23107946faa154d660f379e37cfde09e581 (diff) |
openpgp: Change CertParser to take a fallible iterator
- Change `CertParser` to take a fallible iterator.
- This change allows the iterator to propagate parse errors as such.
Otherwise, parse errors are indistinguishable from EOF.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 47abe39d..b49d7f42 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -792,7 +792,8 @@ pub extern "C" fn pgp_cert_valid_key_iter_next<'a>( /// Wraps a CertParser for export via the FFI. pub struct CertParserWrapper<'a> { - parser: CertParser<'a, std::vec::IntoIter<self::openpgp::Packet>>, + parser: CertParser<'a, + std::vec::IntoIter<self::openpgp::Result<self::openpgp::Packet>>>, } /// Returns a CertParser. |