From a152c41e53574b83f46f1d759131fa8b873a50cc Mon Sep 17 00:00:00 2001 From: zzak Date: Tue, 16 Apr 2013 02:24:09 +0000 Subject: * ext/openssl/*: Document synonymous methods, by windwiny [GH-277] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_hmac.c | 2 +- ext/openssl/ossl_ocsp.c | 2 +- ext/openssl/ossl_pkey_dh.c | 4 +++- ext/openssl/ossl_pkey_dsa.c | 2 ++ ext/openssl/ossl_pkey_ec.c | 6 ++++-- ext/openssl/ossl_pkey_rsa.c | 5 +++-- ext/openssl/ossl_ssl.c | 2 +- ext/openssl/ossl_x509store.c | 2 +- 8 files changed, 16 insertions(+), 9 deletions(-) (limited to 'ext/openssl') diff --git a/ext/openssl/ossl_hmac.c b/ext/openssl/ossl_hmac.c index 5220c9e73d..d30d04ec67 100644 --- a/ext/openssl/ossl_hmac.c +++ b/ext/openssl/ossl_hmac.c @@ -206,7 +206,7 @@ ossl_hmac_s_digest(VALUE klass, VALUE digest, VALUE key, VALUE data) /* * call-seq: - * HMAC.digest(digest, key, data) -> aString + * HMAC.hexdigest(digest, key, data) -> aString * */ static VALUE diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c index e82c2d859a..4e2e8394a4 100644 --- a/ext/openssl/ossl_ocsp.c +++ b/ext/openssl/ossl_ocsp.c @@ -149,7 +149,7 @@ ossl_ocspreq_add_nonce(int argc, VALUE *argv, VALUE self) * 2: nonces both absent. * 3: nonce present in response only. * 0: nonces both present and not equal. - * -1: nonce in request only. + * -1: nonce in request only. * * For most responders clients can check return > 0. * If responder doesn't handle nonces return != 0 may be diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c index c8fb40e1ff..a6ae0063f5 100644 --- a/ext/openssl/ossl_pkey_dh.c +++ b/ext/openssl/ossl_pkey_dh.c @@ -278,7 +278,9 @@ ossl_dh_is_private(VALUE self) /* * call-seq: + * dh.export -> aString * dh.to_pem -> aString + * dh.to_s -> aString * * Encodes this DH to its PEM encoding. Note that any existing per-session * public/private keys will *not* get encoded, just the Diffie-Hellman @@ -428,7 +430,7 @@ ossl_dh_to_public_key(VALUE self) /* * call-seq: - * dh.check_params -> true | false + * dh.params_ok? -> true | false * * Validates the Diffie-Hellman parameters associated with this instance. * It checks whether a safe prime and a suitable generator are used. If this diff --git a/ext/openssl/ossl_pkey_dsa.c b/ext/openssl/ossl_pkey_dsa.c index ba28ba028d..823b9b66e5 100644 --- a/ext/openssl/ossl_pkey_dsa.c +++ b/ext/openssl/ossl_pkey_dsa.c @@ -291,7 +291,9 @@ ossl_dsa_is_private(VALUE self) /* * call-seq: + * dsa.export([cipher, password]) -> aString * dsa.to_pem([cipher, password]) -> aString + * dsa.to_s([cipher, password]) -> aString * * Encodes this DSA to its PEM encoding. * diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c index 8e6d88f606..9d7607ef2f 100644 --- a/ext/openssl/ossl_pkey_ec.c +++ b/ext/openssl/ossl_pkey_ec.c @@ -533,8 +533,8 @@ static VALUE ossl_ec_key_to_string(VALUE self, VALUE ciph, VALUE pass, int forma /* * call-seq: - * key.export => String - * key.export(cipher, pass_phrase) => String + * key.export([cipher, pass_phrase]) => String + * key.to_pem([cipher, pass_phrase]) => String * * Outputs the EC key in PEM encoding. If +cipher+ and +pass_phrase+ are * given they will be used to encrypt the key. +cipher+ must be an @@ -843,6 +843,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) } /* call-seq: + * group1.eql?(group2) => true | false * group1 == group2 => true | false * */ @@ -1312,6 +1313,7 @@ static VALUE ossl_ec_point_initialize(int argc, VALUE *argv, VALUE self) /* * call-seq: + * point1.eql?(point2) => true | false * point1 == point2 => true | false * */ diff --git a/ext/openssl/ossl_pkey_rsa.c b/ext/openssl/ossl_pkey_rsa.c index e395e7108f..4c346a042f 100644 --- a/ext/openssl/ossl_pkey_rsa.c +++ b/ext/openssl/ossl_pkey_rsa.c @@ -291,8 +291,9 @@ ossl_rsa_is_private(VALUE self) /* * call-seq: - * rsa.to_pem => PEM-format String - * rsa.to_pem(cipher, pass_phrase) => PEM-format String + * rsa.export([cipher, pass_phrase]) => PEM-format String + * rsa.to_pem([cipher, pass_phrase]) => PEM-format String + * rsa.to_s([cipher, pass_phrase]) => PEM-format String * * Outputs this keypair in PEM encoding. If +cipher+ and +pass_phrase+ are * given they will be used to encrypt the key. +cipher+ must be an diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index ec54f9cd2a..11a4a6b906 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -1634,7 +1634,7 @@ ossl_ssl_get_peer_cert_chain(VALUE self) /* * call-seq: -* ssl.version => String +* ssl.ssl_version => String * * Returns a String representing the SSL/TLS version that was negotiated * for the connection, for example "TLSv1.2". diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c index 2afa0cf595..f59c376574 100644 --- a/ext/openssl/ossl_x509store.c +++ b/ext/openssl/ossl_x509store.c @@ -257,7 +257,7 @@ ossl_x509store_add_path(VALUE self, VALUE dir) /* * call-seq: - * store.set_default_path + * store.set_default_paths * * Adds the default certificates to the certificate store. These certificates * are loaded from the default configuration directory which can usually be -- cgit v1.2.3