summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-22 11:39:11 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-22 11:39:11 +0100
commit84d2fb9a3b9e5bdfacb429c7ac2f6d9379c4a8ce (patch)
tree5150a7714ef155ca9fb0c0c29d43ab7d4f16fb9a /openpgp-ffi/src
parentb295a5e6c81d040e64c1fe53a14854df591d5fbe (diff)
openpgp: Rework default component lookup functions.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r--openpgp-ffi/src/cert.rs2
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()