mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
f1dcc3da5d
commit
59a92a84c8
Notes:
git
2021-05-04 21:57:20 +09:00
2 changed files with 3 additions and 3 deletions
|
@ -16,8 +16,8 @@
|
||||||
#define X0201_DEFAULT TRUE
|
#define X0201_DEFAULT TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DEFAULT_NEWLINE == 0x0D0A
|
#if defined(DEFAULT_NEWLINE) && DEFAULT_NEWLINE == 0x0D0A
|
||||||
#elif DEFAULT_NEWLINE == 0x0D
|
#elif defined(DEFAULT_NEWLINE) && DEFAULT_NEWLINE == 0x0D
|
||||||
#else
|
#else
|
||||||
#define DEFAULT_NEWLINE 0x0A
|
#define DEFAULT_NEWLINE 0x0A
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1469,7 +1469,7 @@ static VALUE ossl_ec_point_mul(int argc, VALUE *argv, VALUE self)
|
||||||
if (EC_POINT_mul(group, point_result, bn_g, point_self, bn, ossl_bn_ctx) != 1)
|
if (EC_POINT_mul(group, point_result, bn_g, point_self, bn, ossl_bn_ctx) != 1)
|
||||||
ossl_raise(eEC_POINT, NULL);
|
ossl_raise(eEC_POINT, NULL);
|
||||||
} else {
|
} else {
|
||||||
#if OPENSSL_VERSION_MAJOR+0 >= 3 || defined(LIBRESSL_VERSION_NUMBER)
|
#if (defined(OPENSSL_VERSION_MAJOR) && OPENSSL_VERSION_MAJOR >= 3) || defined(LIBRESSL_VERSION_NUMBER)
|
||||||
rb_raise(rb_eNotImpError, "calling #mul with arrays is not" \
|
rb_raise(rb_eNotImpError, "calling #mul with arrays is not" \
|
||||||
"supported by this OpenSSL version");
|
"supported by this OpenSSL version");
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue