summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_x509attr.c
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@ruby-lang.org>2003-09-20 19:18:22 +0000
committergotoyuzo <gotoyuzo@ruby-lang.org>2003-09-20 19:18:22 +0000
commit2084b030c171acaca83fc7324b57714ac2751a9a (patch)
tree9c09b71e0236eecfe9e7a4450f7bafd29e191a9f /ext/openssl/ossl_x509attr.c
parent3c00d7dd6c5a57409fe9decbc1a383ffc38d1dcb (diff)
downloadruby-openssl-history-2084b030c171acaca83fc7324b57714ac2751a9a.tar.gz
* ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): the argument
should be a String. * ext/openssl/ossl_ocsp.c (ossl_ocspres_initialize): ditt. * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): ditto. * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto. * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_x509attr.c')
-rw-r--r--ext/openssl/ossl_x509attr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/ossl_x509attr.c b/ext/openssl/ossl_x509attr.c
index 3309a07..572215d 100644
--- a/ext/openssl/ossl_x509attr.c
+++ b/ext/openssl/ossl_x509attr.c
@@ -94,6 +94,7 @@ ossl_x509attr_initialize(int argc, VALUE *argv, VALUE self)
if(rb_scan_args(argc, argv, "11", &oid, &value) == 1){
GetX509Attr(self, attr);
oid = ossl_to_der_if_possible(oid);
+ StringValue(oid);
p = RSTRING(oid)->ptr;
if(!d2i_X509_ATTRIBUTE(&attr, &p, RSTRING(oid)->len)){
ossl_raise(eX509AttrError, NULL);