mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
OpenSSL update
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ecf0c48d5a
commit
bd96b4c8cc
17 changed files with 409 additions and 335 deletions
|
@ -471,25 +471,8 @@ BIGNUM_RAND(pseudo_rand);
|
|||
WrapBN(klass, obj, result); \
|
||||
return obj; \
|
||||
}
|
||||
|
||||
#define BIGNUM_RAND_RANGE_NOT_IMPL(func) \
|
||||
static VALUE \
|
||||
ossl_bn_s_##func##_range(VALUE klass, VALUE range) \
|
||||
{ \
|
||||
rb_notimplement(); \
|
||||
}
|
||||
|
||||
#if defined(HAVE_BN_RAND_RANGE)
|
||||
BIGNUM_RAND_RANGE(rand);
|
||||
#else
|
||||
BIGNUM_RAND_RANGE_NOT_IMPL(rand);
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_BN_PSEUDO_RAND_RANGE)
|
||||
BIGNUM_RAND_RANGE(pseudo_rand);
|
||||
#else
|
||||
BIGNUM_RAND_RANGE_NOT_IMPL(pseudo_rand);
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
ossl_bn_s_generate_prime(int argc, VALUE *argv, VALUE klass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue