[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:
parent
13137236dc
commit
ca7a6b1553
@ -1257,7 +1257,7 @@ static VALUE ossl_ec_point_is_at_infinity(VALUE self)
|
|||||||
switch (EC_POINT_is_at_infinity(group, point)) {
|
switch (EC_POINT_is_at_infinity(group, point)) {
|
||||||
case 1: return Qtrue;
|
case 1: return Qtrue;
|
||||||
case 0: return Qfalse;
|
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;
|
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)) {
|
switch (EC_POINT_is_on_curve(group, point, ossl_bn_ctx)) {
|
||||||
case 1: return Qtrue;
|
case 1: return Qtrue;
|
||||||
case 0: return Qfalse;
|
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;
|
UNREACHABLE;
|
||||||
@ -1301,7 +1301,7 @@ static VALUE ossl_ec_point_make_affine(VALUE self)
|
|||||||
rb_warn("OpenSSL::PKey::EC::Point#make_affine! is deprecated");
|
rb_warn("OpenSSL::PKey::EC::Point#make_affine! is deprecated");
|
||||||
#if !OSSL_OPENSSL_PREREQ(3, 0, 0)
|
#if !OSSL_OPENSSL_PREREQ(3, 0, 0)
|
||||||
if (EC_POINT_make_affine(group, point, ossl_bn_ctx) != 1)
|
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
|
#endif
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
@ -1320,7 +1320,7 @@ static VALUE ossl_ec_point_invert(VALUE self)
|
|||||||
GetECPointGroup(self, group);
|
GetECPointGroup(self, group);
|
||||||
|
|
||||||
if (EC_POINT_invert(group, point, ossl_bn_ctx) != 1)
|
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;
|
return self;
|
||||||
}
|
}
|
||||||
@ -1338,7 +1338,7 @@ static VALUE ossl_ec_point_set_to_infinity(VALUE self)
|
|||||||
GetECPointGroup(self, group);
|
GetECPointGroup(self, group);
|
||||||
|
|
||||||
if (EC_POINT_set_to_infinity(group, point) != 1)
|
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;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user