summaryrefslogtreecommitdiffstats
path: root/ossl_x509req.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-12-29 22:03:52 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-12-29 22:03:52 +0000
commitcbaa93e6fa4465d3ebf1829bd599f36ed40b5932 (patch)
tree86d316f8933004565fd03ce43098e97b61208401 /ossl_x509req.c
parent9a4f3e1af0b01692db14c92c5a35e5067aa520e8 (diff)
downloadruby-openssl-history-cbaa93e6fa4465d3ebf1829bd599f36ed40b5932.tar.gz
Port to Ruby1.8 (alloc|copy) framework.
Diffstat (limited to 'ossl_x509req.c')
-rw-r--r--ossl_x509req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_x509req.c b/ossl_x509req.c
index 30712e4..a25b782 100644
--- a/ossl_x509req.c
+++ b/ossl_x509req.c
@@ -72,7 +72,7 @@ ossl_x509req_get_X509_REQ(VALUE obj)
* Private functions
*/
static VALUE
-ossl_x509req_s_allocate(VALUE klass)
+ossl_x509req_alloc(VALUE klass)
{
X509_REQ *req;
VALUE obj;
@@ -374,7 +374,7 @@ Init_ossl_x509req()
cX509Req = rb_define_class_under(mX509, "Request", rb_cObject);
- rb_define_singleton_method(cX509Req, "allocate", ossl_x509req_s_allocate, 0);
+ rb_define_alloc_func(cX509Req, ossl_x509req_alloc);
rb_define_method(cX509Req, "initialize", ossl_x509req_initialize, -1);
rb_define_method(cX509Req, "to_pem", ossl_x509req_to_pem, 0);