diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-02-23 07:27:42 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-02-23 07:27:42 +0000 |
commit | 59dd8c5696d83aff78c506d2a161ea4ffb404088 (patch) | |
tree | 4122e0c64fd7117dfdc776f013fb1e487d227b4f /ossl_bn.c | |
parent | 447afde226aac7461d8a549ea8aae5763b0e3124 (diff) | |
download | ruby-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |