[macruby-changes] [3744] MacRuby/branches/icu/ext/openssl/ossl_pkey_ec.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 12 13:32:03 PST 2010


Revision: 3744
          http://trac.macosforge.org/projects/ruby/changeset/3744
Author:   lsansonetti at apple.com
Date:     2010-03-12 13:32:03 -0800 (Fri, 12 Mar 2010)
Log Message:
-----------
port to new bstr api

Modified Paths:
--------------
    MacRuby/branches/icu/ext/openssl/ossl_pkey_ec.c

Modified: MacRuby/branches/icu/ext/openssl/ossl_pkey_ec.c
===================================================================
--- MacRuby/branches/icu/ext/openssl/ossl_pkey_ec.c	2010-03-12 01:59:24 UTC (rev 3743)
+++ MacRuby/branches/icu/ext/openssl/ossl_pkey_ec.c	2010-03-12 21:32:03 UTC (rev 3744)
@@ -639,15 +639,15 @@
 
 /* BUG: need a way to figure out the maximum string size */
     buf_len = 1024;
-    str = rb_bytestring_new();
-    rb_bytestring_resize(str, buf_len);
+    str = rb_bstr_new();
+    rb_bstr_resize(str, buf_len);
 /* BUG: take KDF as a block */
-    buf_len = ECDH_compute_key(rb_bytestring_byte_pointer(str), buf_len,
+    buf_len = ECDH_compute_key(rb_bstr_bytes(str), buf_len,
 	    point, ec, NULL);
     if (buf_len < 0)
          ossl_raise(eECError, "ECDH_compute_key");
 
-    rb_bytestring_resize(str, buf_len);
+    rb_bstr_resize(str, buf_len);
 
     return str;
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100312/b39ef55f/attachment.html>


More information about the macruby-changes mailing list