summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_digest.c
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-06 08:56:09 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-06 08:56:09 +0000
commit256d273e69081484b1a30a66a9be196b7d2e1ac2 (patch)
tree5fc395099c17ce9fbf3a7f4f95b283c898c7858a /ext/openssl/ossl_digest.c
parentdc29af2a0641f839f4a624468f73da50a614b300 (diff)
* ext/openssl/ruby_missing.c: rid of unnecessary backward
compatibility stuff. and remove DEFINE_ALLOC_WRAPPER from all sources. * ext/openssl/ossl_x509ext.c (X509::Extension.new): new method. * ext/openssl/ossl_x509ext.c (X509::Extension#oid=): new method. * ext/openssl/ossl_x509ext.c (X509::Extension#value=): new method. * ext/openssl/ossl_x509ext.c (X509::Extension#critical=): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_digest.c')
-rw-r--r--ext/openssl/ossl_digest.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/ext/openssl/ossl_digest.c b/ext/openssl/ossl_digest.c
index 8511ecc..74a7e1b 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);