aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_hmac.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-04-28 14:26:17 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-04-28 14:26:17 +0900
commitfa51e0c91ebb4df91adb40365de70d3c19c232aa (patch)
treed64cbb4aeef6c708e0d72e3e720b44de5c7d0396 /ext/openssl/ossl_hmac.c
parent380a5860be750d72ebf093aacbd09528f4259550 (diff)
parent2e4dad6a1debf50ba5bfe7696477d4f1aacbd3f7 (diff)
downloadruby-openssl-fa51e0c91ebb4df91adb40365de70d3c19c232aa.tar.gz
Merge branch 'topic/expand-ruby-missing-h'
* topic/expand-ruby-missing-h: Expand FPTR_TO_FD() macro Expand rb_define_copy_func() macro
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 4e892b6c..b2ee17ee 100644
--- a/ext/openssl/ossl_hmac.c
+++ b/ext/openssl/ossl_hmac.c
@@ -377,7 +377,7 @@ Init_ossl_hmac(void)
rb_define_singleton_method(cHMAC, "hexdigest", ossl_hmac_s_hexdigest, 3);
rb_define_method(cHMAC, "initialize", ossl_hmac_initialize, 2);
- rb_define_copy_func(cHMAC, ossl_hmac_copy);
+ rb_define_method(cHMAC, "initialize_copy", ossl_hmac_copy, 1);
rb_define_method(cHMAC, "reset", ossl_hmac_reset, 0);
rb_define_method(cHMAC, "update", ossl_hmac_update, 1);