aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_x509ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'ossl_x509ext.c')
-rw-r--r--ossl_x509ext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_x509ext.c b/ossl_x509ext.c
index 30f9e05..491481d 100644
--- a/ossl_x509ext.c
+++ b/ossl_x509ext.c
@@ -223,7 +223,7 @@ ossl_x509extfactory_create_ext_from_array(VALUE self, VALUE ary)
/* key [0] */
item = RARRAY(ary)->ptr[0];
- Check_SafeStr(item);
+ Check_Type(item, T_STRING);
if (!(nid = OBJ_ln2nid(RSTRING(item)->ptr)))
if (!(nid = OBJ_sn2nid(RSTRING(item)->ptr))) {
OSSL_Raise(eX509ExtensionError, "");
@@ -231,7 +231,7 @@ ossl_x509extfactory_create_ext_from_array(VALUE self, VALUE ary)
/* data [1] */
item = RARRAY(ary)->ptr[1];
- Check_SafeStr(item);
+ Check_Type(item, T_STRING);
/* (optional) critical [2] */
if (RARRAY(ary)->len == 3 && RARRAY(ary)->ptr[2] == Qtrue) {