summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-15 07:42:00 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-15 07:42:00 +0000
commit6f1c875b0708fbe51f912e2a21f88a13f96c52d3 (patch)
tree18d09fdd49776d1cfbb571c8a35890f3725186f7 /ext/openssl
parentc283ee03c6e23f0d61da5643e1d17c6a041b0d58 (diff)
* ext/openssl/ossl_ssl.c, ext/openssl/ossl_nsspki.c: should use
"rb_str_new(0, 0)" to make empty string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl_ns_spki.c2
-rw-r--r--ext/openssl/ossl_ssl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_ns_spki.c b/ext/openssl/ossl_ns_spki.c
index 5cba529850..c10b5b7d3d 100644
--- a/ext/openssl/ossl_ns_spki.c
+++ b/ext/openssl/ossl_ns_spki.c
@@ -168,7 +168,7 @@ ossl_spki_get_challenge(VALUE self)
GetSPKI(self, spki);
if (spki->spkac->challenge->length <= 0) {
OSSL_Debug("Challenge.length <= 0?");
- return rb_str_new2(NULL);
+ return str_str_new(0, 0);
}
return rb_str_new(spki->spkac->challenge->data,
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 640c3386df..0eb3a65a7f 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -461,7 +461,7 @@ ossl_sslctx_set_ciphers(VALUE self, VALUE v)
if (NIL_P(v))
return v;
else if (TYPE(v) == T_ARRAY) {
- str = rb_str_new2(NULL);
+ str = str_str_new(0, 0);
for (i = 0; i < RARRAY(v)->len; i++) {
elem = rb_ary_entry(v, i);
if (TYPE(elem) == T_ARRAY) elem = rb_ary_entry(elem, 0);