summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko <heiko@schaefer.name>2021-03-30 11:16:17 +0200
committerHeiko <heiko@schaefer.name>2021-03-30 11:26:07 +0200
commitea3690c6aa5a9b5b28ae2d6e792608d761bb973b (patch)
treef543125570c0b5f1dc95135bb50e4ca261425725
parentcf5d3aa2fe62e456b68ff844a4a8a0df9e454cac (diff)
Fix terminology: certificate vs. certification.
-rw-r--r--openpgp/src/cert/bindings.rs20
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()