diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-02-15 13:47:28 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-01-12 17:26:34 +0100 |
commit | 5716c6f80f6d8b2562c9b89ae76687e4e013182b (patch) | |
tree | cbf96361214ca2e5647b1808115510ccc1d46de3 | |
parent | f2fa16df4cbdbd5dce42e3c820494f77dcc855ce (diff) |
openpgp: Explicit SEIP packet version in the message parser.
- In order to deal with version 2 SEIP packets, we first need to be
explicit about the packet version in the message parser.
- Rename the token and grammar rules, pass in a version to
MessageParser::push.
-rw-r--r-- | openpgp/src/message/lexer.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/message/lexer.rs b/openpgp/src/message/lexer.rs index 7289d748..8e495e4b 100644 --- a/openpgp/src/message/lexer.rs +++ b/openpgp/src/message/lexer.rs @@ -25,6 +25,10 @@ pub enum Token { SKESK, /// An PK-ESK packet. PKESK, + /// A SEIP packet. + #[deprecated(since = "1.8.0", + note = "The explicitly versioned SEIPv1 is used instead.")] + SEIP, /// A version 1 SEIP packet. SEIPv1, /// An MDC packet. |