diff options
Diffstat (limited to 'lang/ruby18-base/patches/patch-dg')
-rw-r--r-- | lang/ruby18-base/patches/patch-dg | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-dg b/lang/ruby18-base/patches/patch-dg new file mode 100644 index 00000000000..459d340b53e --- /dev/null +++ b/lang/ruby18-base/patches/patch-dg @@ -0,0 +1,26 @@ +$NetBSD: patch-dg,v 1.3 2008/05/14 10:09:00 taca Exp $ + +--- ext/openssl/ossl_hmac.c.orig 2007-03-12 13:12:32.000000000 +0900 ++++ ext/openssl/ossl_hmac.c +@@ -81,9 +81,7 @@ ossl_hmac_copy(VALUE self, VALUE other) + GetHMAC(self, ctx1); + SafeGetHMAC(other, ctx2); + +- if (!HMAC_CTX_copy(ctx1, ctx2)) { +- ossl_raise(eHMACError, NULL); +- } ++ HMAC_CTX_copy(ctx1, ctx2); + return self; + } + +@@ -104,9 +102,7 @@ hmac_final(HMAC_CTX *ctx, char **buf, in + { + HMAC_CTX final; + +- if (!HMAC_CTX_copy(&final, ctx)) { +- ossl_raise(eHMACError, NULL); +- } ++ HMAC_CTX_copy(&final, ctx); + if (!(*buf = OPENSSL_malloc(HMAC_size(&final)))) { + HMAC_CTX_cleanup(&final); + OSSL_Debug("Allocating %d mem", HMAC_size(&final)); |