ruby-changes:11394
From: akr <ko1@a...>
Date: Fri, 20 Mar 2009 18:05:52 +0900 (JST)
Subject: [ruby-changes:11394] Ruby:r23015 (ruby_1_8): * ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr
akr 2009-03-20 18:04:43 +0900 (Fri, 20 Mar 2009) New Revision: 23015 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23015 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: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/openssl/ossl_digest.c branches/ruby_1_8/ext/openssl/ossl_pkey_ec.c Index: ruby_1_8/ext/openssl/ossl_digest.c =================================================================== --- ruby_1_8/ext/openssl/ossl_digest.c (revision 23014) +++ ruby_1_8/ext/openssl/ossl_digest.c (revision 23015) @@ -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: ruby_1_8/ext/openssl/ossl_pkey_ec.c =================================================================== --- ruby_1_8/ext/openssl/ossl_pkey_ec.c (revision 23014) +++ ruby_1_8/ext/openssl/ossl_pkey_ec.c (revision 23015) @@ -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) @@ -774,7 +774,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) Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 23014) +++ ruby_1_8/ChangeLog (revision 23015) @@ -1,3 +1,11 @@ +Fri Mar 20 18:01:12 2009 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. + Thu Mar 19 23:18:44 2009 Tanaka Akira <akr@f...> * ext/openssl/ossl_ssl.c: revert incomplete read_nonblock -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/