diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-23 15:51:01 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-23 15:51:01 +0000 |
commit | eb845bea4c320d6037103ea1d107bbdefdc0bde7 (patch) | |
tree | 8c24fb0e7fe0095f80a216556ad9181498427e8b /ChangeLog | |
parent | 3cd6a6585fd742d9890f814f19ba6491812d6ad5 (diff) | |
download | ruby-eb845bea4c320d6037103ea1d107bbdefdc0bde7.tar.gz |
* ext/openssl/ossl_digest.c (GetDigestPtr): Allow to pass the
OpenSSL::Digest class in place of where either an instance of
the class or the algorithm name was demanded. For example,
OpenSSL::HMAC.digest(OpenSSL::Digest::SHA1, key, data) is now
accepted as well as the usual
OpenSSL::HMAC.digest(OpenSSL::Digest::SHA1.new, key, data) and
OpenSSL::HMAC.digest("SHA1", key, data).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +Wed Feb 24 00:50:09 2010 Akinori MUSHA <knu@iDaemons.org> + + * ext/openssl/ossl_digest.c (GetDigestPtr): Allow to pass the + OpenSSL::Digest class in place of where either an instance of + the class or the algorithm name was demanded. For example, + OpenSSL::HMAC.digest(OpenSSL::Digest::SHA1, key, data) is now + accepted as well as the usual + OpenSSL::HMAC.digest(OpenSSL::Digest::SHA1.new, key, data) and + OpenSSL::HMAC.digest("SHA1", key, data). + Wed Feb 24 00:39:17 2010 Yusuke Endoh <mame@tsg.ne.jp> * string.c (str_new_empty): String#split, partition, rpartition |