From 9b270197c2457cff8b5bea46629e5e33eab593e3 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 12 Jan 2022 01:12:22 +0100 Subject: [PATCH] Add MIME StreamEncoding enum val --- .../java/org/pgpainless/algorithm/StreamEncoding.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pgpainless-core/src/main/java/org/pgpainless/algorithm/StreamEncoding.java b/pgpainless-core/src/main/java/org/pgpainless/algorithm/StreamEncoding.java index 3ea9507b..d47304f6 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/algorithm/StreamEncoding.java +++ b/pgpainless-core/src/main/java/org/pgpainless/algorithm/StreamEncoding.java @@ -32,6 +32,17 @@ public enum StreamEncoding { */ UTF8(PGPLiteralData.UTF8), + /** + * The literal data packet contains a MIME message body part (RFC2045). + * Introduced in rfc4880-bis10. + * + * TODO: Replace 'm' with 'PGPLiteralData.MIME' once BC 1.71 gets released and contains our fix: + * https://github.com/bcgit/bc-java/pull/1088 + * + * @see RFC4880-bis10 + */ + MIME('m'), + /** * Early versions of PGP also defined a value of 'l' as a 'local' mode for machine-local conversions. * RFC 1991 [RFC1991] incorrectly stated this local mode flag as '1' (ASCII numeral one).