diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-13 11:17:45 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-13 11:48:49 +0200 |
commit | 87db0d161c89d944219b2516317ee2155814c2c6 (patch) | |
tree | 2eeedbbbd94d88328d982b13617aff4bf9629c8a /openpgp-ffi/src/cert.rs | |
parent | a7c19682e6980baad8f09357ca4acc5ac9c41ee5 (diff) |
openpgp-ffi: Make pgp_key_pair_as_signer consume the key pair.
- This was actually assumed by pgp_signer_new, leading to a double
free if the key pair was later freed.
Diffstat (limited to 'openpgp-ffi/src/cert.rs')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index f47e9021..4917e789 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -217,7 +217,6 @@ fn int_to_reason_for_revocation(code: c_int) -> ReasonForRevocation { /// "It was the maid :/"); /// assert (revocation); /// pgp_signer_free (primary_signer); -/// pgp_key_pair_free (primary_keypair); /// /// pgp_packet_t packet = pgp_signature_into_packet (revocation); /// cert = pgp_cert_insert_packets (NULL, cert, &packet, 1); |