summaryrefslogtreecommitdiffstats
path: root/openpgp/src/regex
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-12-12 15:07:28 +0100
committerJustus Winter <justus@sequoia-pgp.org>2024-01-25 11:20:05 +0100
commitaefc8b19e401ed6a94a582dc91dd83ff1a94143a (patch)
tree927682297cc918fae00edbe8ad21121459965b14 /openpgp/src/regex
parent187baefa7b38288b929b74b8200bf461796af18c (diff)
openpgp: Add Cert::into_packets2, TSK::into_packets.
- Cert::into_packet is problematic because it does not protect from accidentally leaking secret key material. The documentation even warns about that, but it still happened. Hence, this is a violation of our safe-by-default principle guiding the API, and we should fix it. - The replacement, Cert::into_packets2, strips secret key material just as serializing a cert does. To convert to a sequence of packets while keeping the secret key material, a new function is added: TSK::into_packets, analogous to how TSK serializes secret key material.
Diffstat (limited to 'openpgp/src/regex')
0 files changed, 0 insertions, 0 deletions