diff options
Diffstat (limited to 'ossl_x509attr.c')
-rw-r--r-- | ossl_x509attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_x509attr.c b/ossl_x509attr.c index c1d982d..66f5a55 100644 --- a/ossl_x509attr.c +++ b/ossl_x509attr.c @@ -100,14 +100,14 @@ ossl_x509attr_s_new_from_array(VALUE klass, VALUE ary) /* key [0] */ item = RARRAY(ary)->ptr[0]; - Check_Type(item, T_STRING); + item = rb_String(item); if (!(nid = OBJ_ln2nid(RSTRING(item)->ptr))) if (!(nid = OBJ_sn2nid(RSTRING(item)->ptr))) OSSL_Raise(eX509AttributeError, ""); /* data [1] */ item = RARRAY(ary)->ptr[1]; - Check_Type(item, T_STRING); + item = rb_String(item); if (!(attr = X509_ATTRIBUTE_create(nid, MBSTRING_ASC, RSTRING(item)->ptr))) OSSL_Raise(eX509AttributeError, ""); |