fork-openpgpjs/src/packet/index.js
larabr 775dade80f
Add UnparseablePacket to properly deal with key blocks that include malformed/unsupported packets (#1522)
When parsing errors are being ignored, packets that fail to parse are now
included in the resulting packet list as `UnparseablePacket`s . This way, when
parsing keys that contain unparsable (sub)key, we avoid associating the
following non-key packets to the wrong key entity.

On serialization, `UnparseablePacket`s are also included by writing their raw
packet body as it was read.
2022-05-24 20:12:57 +02:00

4 lines
131 B
JavaScript

export * from './all_packets';
export { default as PacketList } from './packetlist';
export { UnparseablePacket } from './packet';