Project

General

Profile

« Previous | Next » 

Revision eb845bea

Added by Akinori MUSHA over 15 years ago

  • 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