From 698ac308bfe891d266228a0577c891b82fa7b4f4 Mon Sep 17 00:00:00 2001 From: Technorama team Date: Thu, 19 Feb 2004 00:36:55 +0000 Subject: add clone for ruby1.6 --- ossl_cipher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ossl_cipher.c b/ossl_cipher.c index 50ae909..c77915a 100644 --- a/ossl_cipher.c +++ b/ossl_cipher.c @@ -102,6 +102,7 @@ ossl_cipher_copy(VALUE self, VALUE other) return self; } +DEFINE_CLONE_WRAPPER(cipher) static VALUE ossl_cipher_reset(VALUE self) @@ -379,6 +380,7 @@ Init_ossl_cipher(void) rb_define_method(cCipher, "initialize", ossl_cipher_initialize, 1); rb_define_copy_func(cCipher, ossl_cipher_copy); + rb_define_clone_func(cDigest, ossl_cipher_clone); rb_define_method(cCipher, "reset", ossl_cipher_reset, 0); -- cgit v1.2.3