From ea3690c6aa5a9b5b28ae2d6e792608d761bb973b Mon Sep 17 00:00:00 2001 From: Heiko Date: Tue, 30 Mar 2021 11:16:17 +0200 Subject: Fix terminology: certificate vs. certification. --- openpgp/src/cert/bindings.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'openpgp') 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() -- cgit v1.2.3