aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJethro Beekman <[email protected]>2015-05-27 23:44:39 -0700
committerJethro Beekman <[email protected]>2015-05-27 23:46:02 -0700
commita0cbcf56cf34bf30114417be46e5170c6c8a60f4 (patch)
tree360a5079aab5aeabee677a7012e1378bbfa75a2b
parentMerge pull request #217 from nstoddard/master (diff)
downloadrust-openssl-a0cbcf56cf34bf30114417be46e5170c6c8a60f4.tar.xz
rust-openssl-a0cbcf56cf34bf30114417be46e5170c6c8a60f4.zip
Clarify which keys are used where
-rw-r--r--openssl/src/x509/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs
index 4096f690..1af70c41 100644
--- a/openssl/src/x509/mod.rs
+++ b/openssl/src/x509/mod.rs
@@ -332,7 +332,7 @@ impl X509Generator {
((res as c_ulong) >> 1) as c_long
}
- /// Generates a private key and a signed certificate and returns them
+ /// Generates a private key and a self-signed certificate and returns them
pub fn generate<'a>(&self) -> Result<(X509<'a>, PKey), SslError> {
ffi::init();
@@ -343,7 +343,7 @@ impl X509Generator {
Ok((x509, p_key))
}
- /// Signs certificate with a private key and returns it
+ /// Sets the certificate public-key, then self-sign and return it
/// Note: That the bit-length of the private key is used (set_bitlength is ignored)
pub fn sign<'a>(&self, p_key: &PKey) -> Result<X509<'a>, SslError> {
ffi::init();