diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-04 13:07:24 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-04 13:21:47 +0100 |
commit | 43f4017c820c9b67c9e08f860182ab5c7126fc68 (patch) | |
tree | 0f6fc3ad9fceca65988212fea94f816928d8c74f /openpgp-ffi | |
parent | 98253e6dbeffdff0e74ed4258fbc7a3fe38232a0 (diff) |
openpgp: Refine CertBuilder::add_encryption_subkey.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp.h | 2 | ||||
-rw-r--r-- | openpgp-ffi/src/cert.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h index b1de42e3..2672836b 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -1045,7 +1045,7 @@ void pgp_cert_builder_add_signing_subkey(pgp_cert_builder_t *certb); /*/ /// Adds an encryption capable subkey. /*/ -void pgp_cert_builder_add_encryption_subkey(pgp_cert_builder_t *certb); +void pgp_cert_builder_add_transport_encryption_subkey(pgp_cert_builder_t *certb); /*/ /// Adds an certification capable subkey. diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 6b223a3a..561d0c2c 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -797,7 +797,7 @@ pub extern "C" fn pgp_cert_parser_free(parser: Option<&mut CertParserWrapper>) /// pgp_cert_builder_set_cipher_suite (&builder, PGP_CERT_CIPHER_SUITE_CV25519); /// pgp_cert_builder_add_userid (&builder, "some@example.org"); /// pgp_cert_builder_add_signing_subkey (&builder); -/// pgp_cert_builder_add_encryption_subkey (&builder); +/// pgp_cert_builder_add_transport_encryption_subkey (&builder); /// pgp_cert_builder_generate (NULL, builder, &cert, &revocation); /// assert (cert); /// assert (revocation); @@ -918,12 +918,12 @@ pub extern "C" fn pgp_cert_builder_add_signing_subkey /// Adds an encryption capable subkey. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] -pub extern "C" fn pgp_cert_builder_add_encryption_subkey +pub extern "C" fn pgp_cert_builder_add_transport_encryption_subkey (certb: *mut *mut CertBuilder) { let certb = ffi_param_ref_mut!(certb); let certb_ = ffi_param_move!(*certb); - let certb_ = certb_.add_encryption_subkey(); + let certb_ = certb_.add_transport_encryption_subkey(); *certb = box_raw!(certb_); } |