зеркало из https://github.com/github/ruby.git
[ruby/openssl] pkey/ec: fix ossl_raise() calls using cEC_POINT instead of eEC_POINT
https://github.com/ruby/openssl/commit/b2e9f5e132
This commit is contained in:
Родитель
13137236dc
Коммит
ca7a6b1553
|
@ -1257,7 +1257,7 @@ static VALUE ossl_ec_point_is_at_infinity(VALUE self)
|
|||
switch (EC_POINT_is_at_infinity(group, point)) {
|
||||
case 1: return Qtrue;
|
||||
case 0: return Qfalse;
|
||||
default: ossl_raise(cEC_POINT, "EC_POINT_is_at_infinity");
|
||||
default: ossl_raise(eEC_POINT, "EC_POINT_is_at_infinity");
|
||||
}
|
||||
|
||||
UNREACHABLE;
|
||||
|
@ -1278,7 +1278,7 @@ static VALUE ossl_ec_point_is_on_curve(VALUE self)
|
|||
switch (EC_POINT_is_on_curve(group, point, ossl_bn_ctx)) {
|
||||
case 1: return Qtrue;
|
||||
case 0: return Qfalse;
|
||||
default: ossl_raise(cEC_POINT, "EC_POINT_is_on_curve");
|
||||
default: ossl_raise(eEC_POINT, "EC_POINT_is_on_curve");
|
||||
}
|
||||
|
||||
UNREACHABLE;
|
||||
|
@ -1301,7 +1301,7 @@ static VALUE ossl_ec_point_make_affine(VALUE self)
|
|||
rb_warn("OpenSSL::PKey::EC::Point#make_affine! is deprecated");
|
||||
#if !OSSL_OPENSSL_PREREQ(3, 0, 0)
|
||||
if (EC_POINT_make_affine(group, point, ossl_bn_ctx) != 1)
|
||||
ossl_raise(cEC_POINT, "EC_POINT_make_affine");
|
||||
ossl_raise(eEC_POINT, "EC_POINT_make_affine");
|
||||
#endif
|
||||
|
||||
return self;
|
||||
|
@ -1320,7 +1320,7 @@ static VALUE ossl_ec_point_invert(VALUE self)
|
|||
GetECPointGroup(self, group);
|
||||
|
||||
if (EC_POINT_invert(group, point, ossl_bn_ctx) != 1)
|
||||
ossl_raise(cEC_POINT, "EC_POINT_invert");
|
||||
ossl_raise(eEC_POINT, "EC_POINT_invert");
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -1338,7 +1338,7 @@ static VALUE ossl_ec_point_set_to_infinity(VALUE self)
|
|||
GetECPointGroup(self, group);
|
||||
|
||||
if (EC_POINT_set_to_infinity(group, point) != 1)
|
||||
ossl_raise(cEC_POINT, "EC_POINT_set_to_infinity");
|
||||
ossl_raise(eEC_POINT, "EC_POINT_set_to_infinity");
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче