diff options
author | Heiko <heiko@schaefer.name> | 2021-03-30 11:16:17 +0200 |
---|---|---|
committer | Heiko <heiko@schaefer.name> | 2021-03-30 11:26:07 +0200 |
commit | ea3690c6aa5a9b5b28ae2d6e792608d761bb973b (patch) | |
tree | f543125570c0b5f1dc95135bb50e4ca261425725 /openpgp | |
parent | cf5d3aa2fe62e456b68ff844a4a8a0df9e454cac (diff) |
Fix terminology: certificate vs. certification.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/cert/bindings.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/openpgp/src/cert/bindings.rs b/openpgp/src/cert/bindings.rs index 49f4b4f7..91680bce 100644 --- a/openpgp/src/cert/bindings.rs +++ b/openpgp/src/cert/bindings.rs @@ -126,7 +126,7 @@ impl UserID { signer, cert.primary_key().key(), self) } - /// Returns a certificate for the user id. + /// Returns a certification for the user id. /// /// The signature binds this userid to `cert`. `signer` will be /// used to create a certification signature of type @@ -142,7 +142,7 @@ impl UserID { /// /// Returns `Error::InvalidArgument` if `signature_type` is not /// one of `SignatureType::{Generic, Persona, Casual, - /// Positive}Certificate` + /// Positive}Certification` /// /// # Examples /// @@ -166,13 +166,13 @@ impl UserID { /// .generate()?; /// /// // Alice now certifies the binding between `bob@example.org` and `bob`. - /// let certificate = + /// let certification = /// bob.userids().nth(0).unwrap() /// .certify(&mut keypair, &bob, SignatureType::PositiveCertification, /// None, None)?; /// - /// // `certificate` can now be used, e.g. by merging it into `bob`. - /// let bob = bob.insert_packets(certificate)?; + /// // `certification` can now be used, e.g. by merging it into `bob`. + /// let bob = bob.insert_packets(certification)?; /// /// // Check that we have a certification on the userid. /// assert_eq!(bob.userids().nth(0).unwrap() @@ -260,7 +260,7 @@ impl UserAttribute { signer, cert.primary_key().key(), self) } - /// Returns a certificate for the user attribute. + /// Returns a certification for the user attribute. /// /// The signature binds this user attribute to `cert`. `signer` will be /// used to create a certification signature of type @@ -276,7 +276,7 @@ impl UserAttribute { /// /// Returns `Error::InvalidArgument` if `signature_type` is not /// one of `SignatureType::{Generic, Persona, Casual, - /// Positive}Certificate` + /// Positive}Certification` /// /// # Examples /// @@ -304,13 +304,13 @@ impl UserAttribute { /// .generate()?; /// /// // Alice now certifies the binding between `bob@example.org` and `bob`. - /// let certificate = + /// let certification = /// bob.user_attributes().nth(0).unwrap() /// .certify(&mut keypair, &bob, SignatureType::PositiveCertification, /// None, None)?; /// - /// // `certificate` can now be used, e.g. by merging it into `bob`. - /// let bob = bob.insert_packets(certificate)?; + /// // `certification` can now be used, e.g. by merging it into `bob`. + /// let bob = bob.insert_packets(certification)?; /// /// // Check that we have a certification on the userid. /// assert_eq!(bob.user_attributes().nth(0).unwrap() |