aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_bn.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_bn.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_bn.c')
-rw-r--r--ossl_bn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ossl_bn.c b/ossl_bn.c
index 35dc785..4f548fc 100644
--- a/ossl_bn.c
+++ b/ossl_bn.c
@@ -84,7 +84,7 @@ ossl_bn_s_new(int argc, VALUE *argv, VALUE klass)
{ \
BIGNUM *bn = NULL; \
\
- Check_SafeStr(str); \
+ Check_Type(str, T_STRING); \
\
GetBN(self, bn); \
\
@@ -102,7 +102,7 @@ BIGNUM_FROM(mpi);
{ \
BIGNUM *bn = NULL; \
\
- Check_SafeStr(str); \
+ Check_Type(str, T_STRING); \
\
GetBN(self, bn); \
\
@@ -510,7 +510,7 @@ ossl_bn_s_generate_prime(int argc, VALUE *argv, VALUE klass)
if (!NIL_P(vadd)) {
if (NIL_P(vrem))
- rb_raise(rb_eArgError, "if add is specified, rem must be also given");
+ rb_raise(rb_eArgError, "if ADD is specified, REM must be also given");
OSSL_Check_Type(vadd, cBN);
OSSL_Check_Type(vrem, cBN);