Skip to content

Commit b2e9f5e

Browse files
committed
pkey/ec: fix ossl_raise() calls using cEC_POINT instead of eEC_POINT
1 parent de8a644 commit b2e9f5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/openssl/ossl_pkey_ec.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ static VALUE ossl_ec_point_is_at_infinity(VALUE self)
14451445
switch (EC_POINT_is_at_infinity(group, point)) {
14461446
case 1: return Qtrue;
14471447
case 0: return Qfalse;
1448-
default: ossl_raise(cEC_POINT, "EC_POINT_is_at_infinity");
1448+
default: ossl_raise(eEC_POINT, "EC_POINT_is_at_infinity");
14491449
}
14501450

14511451
UNREACHABLE;
@@ -1466,7 +1466,7 @@ static VALUE ossl_ec_point_is_on_curve(VALUE self)
14661466
switch (EC_POINT_is_on_curve(group, point, ossl_bn_ctx)) {
14671467
case 1: return Qtrue;
14681468
case 0: return Qfalse;
1469-
default: ossl_raise(cEC_POINT, "EC_POINT_is_on_curve");
1469+
default: ossl_raise(eEC_POINT, "EC_POINT_is_on_curve");
14701470
}
14711471

14721472
UNREACHABLE;
@@ -1485,7 +1485,7 @@ static VALUE ossl_ec_point_make_affine(VALUE self)
14851485
GetECPointGroup(self, group);
14861486

14871487
if (EC_POINT_make_affine(group, point, ossl_bn_ctx) != 1)
1488-
ossl_raise(cEC_POINT, "EC_POINT_make_affine");
1488+
ossl_raise(eEC_POINT, "EC_POINT_make_affine");
14891489

14901490
return self;
14911491
}
@@ -1503,7 +1503,7 @@ static VALUE ossl_ec_point_invert(VALUE self)
15031503
GetECPointGroup(self, group);
15041504

15051505
if (EC_POINT_invert(group, point, ossl_bn_ctx) != 1)
1506-
ossl_raise(cEC_POINT, "EC_POINT_invert");
1506+
ossl_raise(eEC_POINT, "EC_POINT_invert");
15071507

15081508
return self;
15091509
}
@@ -1521,7 +1521,7 @@ static VALUE ossl_ec_point_set_to_infinity(VALUE self)
15211521
GetECPointGroup(self, group);
15221522

15231523
if (EC_POINT_set_to_infinity(group, point) != 1)
1524-
ossl_raise(cEC_POINT, "EC_POINT_set_to_infinity");
1524+
ossl_raise(eEC_POINT, "EC_POINT_set_to_infinity");
15251525

15261526
return self;
15271527
}

0 commit comments

Comments
 (0)