[前][次][番号順一覧][スレッド一覧]

ruby-changes:9667

From: akr <ko1@a...>
Date: Wed, 31 Dec 2008 14:55:42 +0900 (JST)
Subject: [ruby-changes:9667] Ruby:r21208 (trunk): * ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr

akr	2008-12-31 14:55:25 +0900 (Wed, 31 Dec 2008)

  New Revision: 21208

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21208

  Log:
    * ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr
      instead of STR2CSTR.
    * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
      (ossl_ec_group_initialize): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_digest.c
    trunk/ext/openssl/ossl_pkey_ec.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21207)
+++ ChangeLog	(revision 21208)
@@ -1,3 +1,11 @@
+Wed Dec 31 14:52:33 2008  Tanaka Akira  <akr@f...>
+
+	* ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr
+	  instead of STR2CSTR.
+
+	* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
+	  (ossl_ec_group_initialize): ditto.
+
 Wed Dec 31 13:49:06 2008  Tanaka Akira  <akr@f...>
 
 	* ext/openssl/lib/openssl/buffering.rb (Buffering#read_nonblock):
Index: ext/openssl/ossl_digest.c
===================================================================
--- ext/openssl/ossl_digest.c	(revision 21207)
+++ ext/openssl/ossl_digest.c	(revision 21208)
@@ -38,7 +38,7 @@
     const EVP_MD *md;
 
     if (TYPE(obj) == T_STRING) {
-    	const char *name = STR2CSTR(obj);
+    	const char *name = StringValueCStr(obj);
 
         md = EVP_get_digestbyname(name);
         if (!md)
Index: ext/openssl/ossl_pkey_ec.c
===================================================================
--- ext/openssl/ossl_pkey_ec.c	(revision 21207)
+++ ext/openssl/ossl_pkey_ec.c	(revision 21208)
@@ -201,7 +201,7 @@
             BIO_free(in);
 
             if (ec == NULL) {
-                const char *name = STR2CSTR(arg);
+                const char *name = StringValueCStr(arg);
                 int nid = OBJ_sn2nid(name);
 
                 if (nid == NID_undef)
@@ -785,7 +785,7 @@
             BIO_free(in);
 
             if (!group) {
-                const char *name = STR2CSTR(arg1);
+                const char *name = StringValueCStr(arg1);
                 int nid = OBJ_sn2nid(name);
 
                 if (nid == NID_undef)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]