[macruby-changes] [2915] MacRuby/trunk/ext/openssl

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 28 19:16:15 PDT 2009


Revision: 2915
          http://trac.macosforge.org/projects/ruby/changeset/2915
Author:   lsansonetti at apple.com
Date:     2009-10-28 19:16:12 -0700 (Wed, 28 Oct 2009)
Log Message:
-----------
more openssl porting

Modified Paths:
--------------
    MacRuby/trunk/ext/openssl/ossl_cipher.c
    MacRuby/trunk/ext/openssl/ossl_config.c
    MacRuby/trunk/ext/openssl/ossl_digest.c
    MacRuby/trunk/ext/openssl/ossl_hmac.c
    MacRuby/trunk/ext/openssl/ossl_pkcs7.c
    MacRuby/trunk/ext/openssl/ossl_x509cert.c
    MacRuby/trunk/ext/openssl/ossl_x509crl.c
    MacRuby/trunk/ext/openssl/ossl_x509req.c
    MacRuby/trunk/ext/openssl/ruby_missing.h

Modified: MacRuby/trunk/ext/openssl/ossl_cipher.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_cipher.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_cipher.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -109,7 +109,7 @@
     return self;
 }
 static VALUE
-ossl_cipher_copy(VALUE self, VALUE other)
+ossl_cipher_copy(VALUE self, SEL sel, VALUE other)
 {
     EVP_CIPHER_CTX *ctx1, *ctx2;
 	

Modified: MacRuby/trunk/ext/openssl/ossl_config.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_config.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_config.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -114,7 +114,7 @@
 }
 
 static VALUE
-ossl_config_copy(VALUE self, VALUE other)
+ossl_config_copy(VALUE self, SEL sel, VALUE other)
 {
     VALUE str;
     CONF *conf;

Modified: MacRuby/trunk/ext/openssl/ossl_digest.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_digest.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_digest.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -110,7 +110,7 @@
 }
 
 static VALUE
-ossl_digest_copy(VALUE self, VALUE other)
+ossl_digest_copy(VALUE self, SEL sel, VALUE other)
 {
     EVP_MD_CTX *ctx1, *ctx2;
     
@@ -170,8 +170,6 @@
     EVP_MD_CTX *ctx;
     VALUE str;
 
-printf("ossl_digest_finish %p\n", (void *)self);
-
     rb_scan_args(argc, argv, "01", &str);
 
     GetDigest(self, ctx);

Modified: MacRuby/trunk/ext/openssl/ossl_hmac.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_hmac.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_hmac.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -77,7 +77,7 @@
 }
 
 static VALUE
-ossl_hmac_copy(VALUE self, VALUE other)
+ossl_hmac_copy(VALUE self, SEL sel, VALUE other)
 {
     HMAC_CTX *ctx1, *ctx2;
     

Modified: MacRuby/trunk/ext/openssl/ossl_pkcs7.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_pkcs7.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_pkcs7.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -332,7 +332,7 @@
 }
 
 static VALUE
-ossl_pkcs7_copy(VALUE self, VALUE other)
+ossl_pkcs7_copy(VALUE self, SEL sel, VALUE other)
 {
     PKCS7 *a, *b, *pkcs7;
 

Modified: MacRuby/trunk/ext/openssl/ossl_x509cert.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_x509cert.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_x509cert.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -157,7 +157,7 @@
 }
 
 static VALUE
-ossl_x509_copy(VALUE self, VALUE other)
+ossl_x509_copy(VALUE self, SEL sel, VALUE other)
 {
     X509 *a, *b, *x509;
 	

Modified: MacRuby/trunk/ext/openssl/ossl_x509crl.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_x509crl.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_x509crl.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -113,7 +113,7 @@
 }
 
 static VALUE
-ossl_x509crl_copy(VALUE self, VALUE other)
+ossl_x509crl_copy(VALUE self, SEL sel, VALUE other)
 {
     X509_CRL *a, *b, *crl;
 	

Modified: MacRuby/trunk/ext/openssl/ossl_x509req.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_x509req.c	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ossl_x509req.c	2009-10-29 02:16:12 UTC (rev 2915)
@@ -121,7 +121,7 @@
 }
 
 static VALUE
-ossl_x509req_copy(VALUE self, VALUE other)
+ossl_x509req_copy(VALUE self, SEL sel, VALUE other)
 {
     X509_REQ *a, *b, *req;
 	

Modified: MacRuby/trunk/ext/openssl/ruby_missing.h
===================================================================
--- MacRuby/trunk/ext/openssl/ruby_missing.h	2009-10-29 01:52:18 UTC (rev 2914)
+++ MacRuby/trunk/ext/openssl/ruby_missing.h	2009-10-29 02:16:12 UTC (rev 2915)
@@ -12,7 +12,7 @@
 #define _OSSL_RUBY_MISSING_H_
 
 #define rb_define_copy_func(klass, func) \
-	rb_define_method(klass, "initialize_copy", func, 1)
+	rb_objc_define_method(klass, "initialize_copy", func, 1)
 
 
 #ifndef GetReadFile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091028/dfbae6f2/attachment.html>


More information about the macruby-changes mailing list