aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ossl_cipher.c2
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);