From 59dd8c5696d83aff78c506d2a161ea4ffb404088 Mon Sep 17 00:00:00 2001 From: Michal Rokos Date: Sat, 23 Feb 2002 07:27:42 +0000 Subject: * More benevolent checks (Check_SafeStr(x) -> Check_Type(x, T_STRING) (where we don't care) --- ossl_bn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ossl_bn.c') 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); -- cgit v1.2.3