Project

General

Profile

Bug #3094 ยป digest.patch

cfis (Charlie Savage), 04/05/2010 12:26 PM

View differences:

ext/digest/md5/extconf.rb (working copy)
if !with_config("bundled-md5") &&
have_library("crypto") && have_header("openssl/md5.h")
$objs << "md5ossl.#{$OBJEXT}"
$objs << "md5.#{$OBJEXT}"
else
$objs << "md5.#{$OBJEXT}"
ext/digest/rmd160/extconf.rb (working copy)
if !with_config("bundled-rmd160") &&
have_library("crypto") && have_header("openssl/ripemd.h")
$objs << "rmd160ossl.#{$OBJEXT}"
$objs << "rmd160.#{$OBJEXT}"
else
$objs << "rmd160.#{$OBJEXT}"
end
ext/digest/sha1/extconf.rb (working copy)
if !with_config("bundled-sha1") &&
have_library("crypto") && have_header("openssl/sha.h")
$objs << "sha1ossl.#{$OBJEXT}"
$objs << "sha1.#{$OBJEXT}"
else
$objs << "sha1.#{$OBJEXT}"
end
ext/digest/sha2/extconf.rb (working copy)
have_library("crypto") &&
%w[SHA256 SHA512].all? {|d| have_func("#{d}_Transform", "openssl/sha.h")}
$objs << "sha2ossl.#{$OBJEXT}"
$objs << "sha2.#{$OBJEXT}"
$defs << "-DSHA2_USE_OPENSSL"
else
have_type("u_int8_t")
    (1-1/1)