aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_hmac.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-25 08:49:36 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-25 08:49:36 +0000
commit3a9772f651ddb7e9582c7c3ff5af15615f837d99 (patch)
tree561d200048bc55f32b4d45dca73a65fcfd67bba3 /ext/openssl/ossl_hmac.c
parentfb1f07049fc74830e3e3965de1ce61f010acb266 (diff)
downloadruby-3a9772f651ddb7e9582c7c3ff5af15615f837d99.tar.gz
* ext/openssl/ossl.c (ossl_buf2str): fix type of 1st argument for
rb_protect. * ext/openssl/ossl_hmac.c (ossl_hmac_digest): should return meaningful value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_hmac.c')
-rw-r--r--ext/openssl/ossl_hmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_hmac.c b/ext/openssl/ossl_hmac.c
index 1e5d5bc09c..0b4d8d9b54 100644
--- a/ext/openssl/ossl_hmac.c
+++ b/ext/openssl/ossl_hmac.c
@@ -124,7 +124,7 @@ ossl_hmac_digest(VALUE self)
GetHMAC(self, ctx);
hmac_final(ctx, &buf, &buf_len);
- ossl_buf2str(buf, buf_len);
+ digest = ossl_buf2str(buf, buf_len);
return digest;
}