aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_bn.c
diff options
context:
space:
mode:
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);