diff options
author | Technorama team <oss-ruby@technorama.net> | 2004-02-19 00:36:55 +0000 |
---|---|---|
committer | Technorama team <oss-ruby@technorama.net> | 2004-02-19 00:36:55 +0000 |
commit | 698ac308bfe891d266228a0577c891b82fa7b4f4 (patch) | |
tree | 26d2589df6cc93e046199bcf213f7435301990d2 | |
parent | 8fc2b0ab52255b49686af851ef2bca3e1f45a52b (diff) | |
download | ruby-openssl-history-698ac308bfe891d266228a0577c891b82fa7b4f4.tar.gz |
add clone for ruby1.6
-rw-r--r-- | ossl_cipher.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |