diff options
Diffstat (limited to 'ext/openssl/ossl_digest.c')
-rw-r--r-- | ext/openssl/ossl_digest.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/ext/openssl/ossl_digest.c b/ext/openssl/ossl_digest.c index 8511eccf4..74a7e1b34 100644 --- a/ext/openssl/ossl_digest.c +++ b/ext/openssl/ossl_digest.c @@ -73,7 +73,6 @@ ossl_digest_alloc(VALUE klass) return obj; } -DEFINE_ALLOC_WRAPPER(ossl_digest_alloc) VALUE ossl_digest_update(VALUE, VALUE); @@ -197,12 +196,7 @@ ossl_digest_hexdigest(VALUE self) static VALUE ossl_digest_s_digest(VALUE klass, VALUE str, VALUE data) { - VALUE obj = -#if HAVE_RB_DEFINE_ALLOC_FUNC - rb_class_new_instance(1, &str, klass); -#else - ossl_digest_alloc_wrapper(1, &str, klass); -#endif + VALUE obj = rb_class_new_instance(1, &str, klass); ossl_digest_update(obj, data); @@ -212,12 +206,7 @@ ossl_digest_s_digest(VALUE klass, VALUE str, VALUE data) static VALUE ossl_digest_s_hexdigest(VALUE klass, VALUE str, VALUE data) { - VALUE obj = -#if HAVE_RB_DEFINE_ALLOC_FUNC - rb_class_new_instance(1, &str, klass); -#else - ossl_digest_alloc_wrapper(1, &str, klass); -#endif + VALUE obj = rb_class_new_instance(1, &str, klass); ossl_digest_update(obj, data); |