diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-22 11:39:11 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-22 11:39:11 +0100 |
commit | 84d2fb9a3b9e5bdfacb429c7ac2f6d9379c4a8ce (patch) | |
tree | 5150a7714ef155ca9fb0c0c29d43ab7d4f16fb9a /openpgp-ffi/src | |
parent | b295a5e6c81d040e64c1fe53a14854df591d5fbe (diff) |
openpgp: Rework default component lookup functions.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 0190595c..ab9ed84b 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -362,7 +362,7 @@ fn pgp_cert_primary_user_id(cert: *const Cert) -> *mut c_char { let cert = cert.ref_raw(); - if let Some(binding) = cert.userids().primary(None) { + if let Some(binding) = cert.primary_userid(None) { ffi_return_string!(binding.userid().value()) } else { ptr::null_mut() |