* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb4d7b1a7f
commit
ef2ff2776b
@ -1,3 +1,11 @@
|
|||||||
|
Wed Dec 31 14:52:33 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* 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@fsij.org>
|
Wed Dec 31 13:49:06 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/openssl/lib/openssl/buffering.rb (Buffering#read_nonblock):
|
* ext/openssl/lib/openssl/buffering.rb (Buffering#read_nonblock):
|
||||||
|
@ -38,7 +38,7 @@ GetDigestPtr(VALUE obj)
|
|||||||
const EVP_MD *md;
|
const EVP_MD *md;
|
||||||
|
|
||||||
if (TYPE(obj) == T_STRING) {
|
if (TYPE(obj) == T_STRING) {
|
||||||
const char *name = STR2CSTR(obj);
|
const char *name = StringValueCStr(obj);
|
||||||
|
|
||||||
md = EVP_get_digestbyname(name);
|
md = EVP_get_digestbyname(name);
|
||||||
if (!md)
|
if (!md)
|
||||||
|
@ -201,7 +201,7 @@ static VALUE ossl_ec_key_initialize(int argc, VALUE *argv, VALUE self)
|
|||||||
BIO_free(in);
|
BIO_free(in);
|
||||||
|
|
||||||
if (ec == NULL) {
|
if (ec == NULL) {
|
||||||
const char *name = STR2CSTR(arg);
|
const char *name = StringValueCStr(arg);
|
||||||
int nid = OBJ_sn2nid(name);
|
int nid = OBJ_sn2nid(name);
|
||||||
|
|
||||||
if (nid == NID_undef)
|
if (nid == NID_undef)
|
||||||
@ -785,7 +785,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
|
|||||||
BIO_free(in);
|
BIO_free(in);
|
||||||
|
|
||||||
if (!group) {
|
if (!group) {
|
||||||
const char *name = STR2CSTR(arg1);
|
const char *name = StringValueCStr(arg1);
|
||||||
int nid = OBJ_sn2nid(name);
|
int nid = OBJ_sn2nid(name);
|
||||||
|
|
||||||
if (nid == NID_undef)
|
if (nid == NID_undef)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user