aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_x509attr.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-02-23 07:27:42 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-02-23 07:27:42 +0000
commit59dd8c5696d83aff78c506d2a161ea4ffb404088 (patch)
tree4122e0c64fd7117dfdc776f013fb1e487d227b4f /ossl_x509attr.c
parent447afde226aac7461d8a549ea8aae5763b0e3124 (diff)
downloadruby-openssl-history-59dd8c5696d83aff78c506d2a161ea4ffb404088.tar.gz
* More benevolent checks (Check_SafeStr(x) -> Check_Type(x, T_STRING)
(where we don't care)
Diffstat (limited to 'ossl_x509attr.c')
-rw-r--r--ossl_x509attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_x509attr.c b/ossl_x509attr.c
index 8446afe..c1d982d 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_SafeStr(item);
+ Check_Type(item, T_STRING);
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_SafeStr(item);
+ Check_Type(item, T_STRING);
if (!(attr = X509_ATTRIBUTE_create(nid, MBSTRING_ASC, RSTRING(item)->ptr)))
OSSL_Raise(eX509AttributeError, "");