diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-21 16:10:26 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-21 16:39:30 +0100 |
commit | 7accf308157ed448095590a4d1763a99fb075537 (patch) | |
tree | a659e1de592b14f6d5b9745a7eeb9d1de25cd290 /openpgp-ffi/src/packet | |
parent | 1e579754f0a2b21aabefcd73f51145cc33f820cd (diff) |
openpgp: Rename UserAttribute's accessors.
- See #224.
Diffstat (limited to 'openpgp-ffi/src/packet')
-rw-r--r-- | openpgp-ffi/src/packet/user_attribute.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp-ffi/src/packet/user_attribute.rs b/openpgp-ffi/src/packet/user_attribute.rs index 17fd8778..925884c9 100644 --- a/openpgp-ffi/src/packet/user_attribute.rs +++ b/openpgp-ffi/src/packet/user_attribute.rs @@ -19,9 +19,9 @@ pub extern "system" fn pgp_user_attribute_value(ua: *const Packet, let ua = ffi_param_ref!(ua); if let &Packet::UserAttribute(ref ua) = ua { if let Some(p) = value_len { - *p = ua.user_attribute().len(); + *p = ua.value().len(); } - ua.user_attribute().as_ptr() + ua.value().as_ptr() } else { panic!("Not a UserAttribute packet"); } |