Skip to content

Commit

Permalink
pkey/ec: fix ossl_raise() calls using cEC_POINT instead of eEC_POINT
Browse files Browse the repository at this point in the history
  • Loading branch information
bannable committed Nov 27, 2022
1 parent f2311d5 commit 7085fc4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/openssl/ossl_pkey_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,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;
Expand All @@ -1274,7 +1274,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;
Expand All @@ -1297,7 +1297,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;
Expand All @@ -1316,7 +1316,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;
}
Expand All @@ -1334,7 +1334,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;
}
Expand Down

0 comments on commit 7085fc4

Please sign in to comment.