Revision
3744
Author
lsansonetti@apple.com
Date
2010-03-12 13:32:03 -0800 (Fri, 12 Mar 2010)

Log Message

port to new bstr api

Modified Paths

Diff

Modified: MacRuby/branches/icu/ext/openssl/ossl_pkey_ec.c (3743 => 3744)


--- 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;
 }