summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-07 22:36:38 +0000
committertb <>2023-04-07 22:36:38 +0000
commit67c297f45dc8fd8dc06e6d6d8e6787ebb3622f96 (patch)
tree2d7a39772cc71f9ac79bc375180d6ad9f55eec65
parent7210b353d4d2bb33c859693b9c3ad60b5bc52b04 (diff)
downloadopenbsd-67c297f45dc8fd8dc06e6d6d8e6787ebb3622f96.tar.gz
openbsd-67c297f45dc8fd8dc06e6d6d8e6787ebb3622f96.tar.bz2
openbsd-67c297f45dc8fd8dc06e6d6d8e6787ebb3622f96.zip
bn_test: rename rc into ret as per usual
-rw-r--r--src/regress/lib/libcrypto/bn/bn_test.c182
1 files changed, 91 insertions, 91 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c
index 24a9fb8198..be790bc956 100644
--- a/src/regress/lib/libcrypto/bn/bn_test.c
+++ b/src/regress/lib/libcrypto/bn/bn_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_test.c,v 1.12 2023/04/07 22:32:59 tb Exp $ */ 1/* $OpenBSD: bn_test.c,v 1.13 2023/04/07 22:36:38 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -363,7 +363,7 @@ test_add(BIO *bp, BN_CTX *ctx)
363{ 363{
364 BIGNUM *a, *b, *c; 364 BIGNUM *a, *b, *c;
365 int i; 365 int i;
366 int rc = 0; 366 int ret = 0;
367 367
368 BN_CTX_start(ctx); 368 BN_CTX_start(ctx);
369 369
@@ -400,11 +400,11 @@ test_add(BIO *bp, BN_CTX *ctx)
400 } 400 }
401 } 401 }
402 402
403 rc = 1; 403 ret = 1;
404 err: 404 err:
405 BN_CTX_end(ctx); 405 BN_CTX_end(ctx);
406 406
407 return rc; 407 return ret;
408} 408}
409 409
410int 410int
@@ -412,7 +412,7 @@ test_sub(BIO *bp, BN_CTX *ctx)
412{ 412{
413 BIGNUM *a, *b, *c; 413 BIGNUM *a, *b, *c;
414 int i; 414 int i;
415 int rc = 0; 415 int ret = 0;
416 416
417 BN_CTX_start(ctx); 417 BN_CTX_start(ctx);
418 418
@@ -454,11 +454,11 @@ test_sub(BIO *bp, BN_CTX *ctx)
454 } 454 }
455 } 455 }
456 456
457 rc = 1; 457 ret = 1;
458 err: 458 err:
459 BN_CTX_end(ctx); 459 BN_CTX_end(ctx);
460 460
461 return rc; 461 return ret;
462} 462}
463 463
464int 464int
@@ -466,7 +466,7 @@ test_div(BIO *bp, BN_CTX *ctx)
466{ 466{
467 BIGNUM *a, *b, *c, *d, *e; 467 BIGNUM *a, *b, *c, *d, *e;
468 int i; 468 int i;
469 int rc = 0; 469 int ret = 0;
470 470
471 BN_CTX_start(ctx); 471 BN_CTX_start(ctx);
472 472
@@ -529,11 +529,11 @@ test_div(BIO *bp, BN_CTX *ctx)
529 } 529 }
530 } 530 }
531 531
532 rc = 1; 532 ret = 1;
533 err: 533 err:
534 BN_CTX_end(ctx); 534 BN_CTX_end(ctx);
535 535
536 return rc; 536 return ret;
537} 537}
538 538
539static void 539static void
@@ -559,7 +559,7 @@ test_div_word(BIO *bp, BN_CTX *ctx)
559 BIGNUM *a, *b; 559 BIGNUM *a, *b;
560 BN_ULONG r, rmod, s = 0; 560 BN_ULONG r, rmod, s = 0;
561 int i; 561 int i;
562 int rc = 0; 562 int ret = 0;
563 563
564 BN_CTX_start(ctx); 564 BN_CTX_start(ctx);
565 565
@@ -618,11 +618,11 @@ test_div_word(BIO *bp, BN_CTX *ctx)
618 } 618 }
619 } 619 }
620 620
621 rc = 1; 621 ret = 1;
622 err: 622 err:
623 BN_CTX_end(ctx); 623 BN_CTX_end(ctx);
624 624
625 return rc; 625 return ret;
626} 626}
627 627
628int 628int
@@ -631,7 +631,7 @@ test_div_recp(BIO *bp, BN_CTX *ctx)
631 BN_RECP_CTX *recp = NULL; 631 BN_RECP_CTX *recp = NULL;
632 BIGNUM *a, *b, *c, *d, *e; 632 BIGNUM *a, *b, *c, *d, *e;
633 int i; 633 int i;
634 int rc = 0; 634 int ret = 0;
635 635
636 BN_CTX_start(ctx); 636 BN_CTX_start(ctx);
637 637
@@ -694,12 +694,12 @@ test_div_recp(BIO *bp, BN_CTX *ctx)
694 } 694 }
695 } 695 }
696 696
697 rc = 1; 697 ret = 1;
698 err: 698 err:
699 BN_CTX_end(ctx); 699 BN_CTX_end(ctx);
700 BN_RECP_CTX_free(recp); 700 BN_RECP_CTX_free(recp);
701 701
702 return rc; 702 return ret;
703} 703}
704 704
705int 705int
@@ -707,7 +707,7 @@ test_mul(BIO *bp, BN_CTX *ctx)
707{ 707{
708 BIGNUM *a, *b, *c, *d, *e; 708 BIGNUM *a, *b, *c, *d, *e;
709 int i; 709 int i;
710 int rc = 0; 710 int ret = 0;
711 711
712 BN_CTX_start(ctx); 712 BN_CTX_start(ctx);
713 713
@@ -749,11 +749,11 @@ test_mul(BIO *bp, BN_CTX *ctx)
749 } 749 }
750 } 750 }
751 751
752 rc = 1; 752 ret = 1;
753 err: 753 err:
754 BN_CTX_end(ctx); 754 BN_CTX_end(ctx);
755 755
756 return rc; 756 return ret;
757} 757}
758 758
759int 759int
@@ -761,7 +761,7 @@ test_sqr(BIO *bp, BN_CTX *ctx)
761{ 761{
762 BIGNUM *a, *c, *d, *e; 762 BIGNUM *a, *c, *d, *e;
763 int i; 763 int i;
764 int rc = 0; 764 int ret = 0;
765 765
766 BN_CTX_start(ctx); 766 BN_CTX_start(ctx);
767 767
@@ -845,11 +845,11 @@ test_sqr(BIO *bp, BN_CTX *ctx)
845 goto err; 845 goto err;
846 } 846 }
847 847
848 rc = 1; 848 ret = 1;
849 err: 849 err:
850 BN_CTX_end(ctx); 850 BN_CTX_end(ctx);
851 851
852 return rc; 852 return ret;
853} 853}
854 854
855int 855int
@@ -858,7 +858,7 @@ test_mont(BIO *bp, BN_CTX *ctx)
858 BN_MONT_CTX *mont = NULL; 858 BN_MONT_CTX *mont = NULL;
859 BIGNUM *a, *b, *c, *d, *A, *B, *n; 859 BIGNUM *a, *b, *c, *d, *A, *B, *n;
860 int i; 860 int i;
861 int rc = 0; 861 int ret = 0;
862 862
863 BN_CTX_start(ctx); 863 BN_CTX_start(ctx);
864 864
@@ -933,12 +933,12 @@ test_mont(BIO *bp, BN_CTX *ctx)
933 } 933 }
934 } 934 }
935 935
936 rc = 1; 936 ret = 1;
937 err: 937 err:
938 BN_CTX_end(ctx); 938 BN_CTX_end(ctx);
939 BN_MONT_CTX_free(mont); 939 BN_MONT_CTX_free(mont);
940 940
941 return rc; 941 return ret;
942} 942}
943 943
944int 944int
@@ -946,7 +946,7 @@ test_mod(BIO *bp, BN_CTX *ctx)
946{ 946{
947 BIGNUM *a, *b, *c, *d, *e; 947 BIGNUM *a, *b, *c, *d, *e;
948 int i; 948 int i;
949 int rc = 0; 949 int ret = 0;
950 950
951 BN_CTX_start(ctx); 951 BN_CTX_start(ctx);
952 952
@@ -985,11 +985,11 @@ test_mod(BIO *bp, BN_CTX *ctx)
985 } 985 }
986 } 986 }
987 987
988 rc = 1; 988 ret = 1;
989 err: 989 err:
990 BN_CTX_end(ctx); 990 BN_CTX_end(ctx);
991 991
992 return rc; 992 return ret;
993} 993}
994 994
995int 995int
@@ -997,7 +997,7 @@ test_mod_mul(BIO *bp, BN_CTX *ctx)
997{ 997{
998 BIGNUM *a, *b, *c, *d, *e; 998 BIGNUM *a, *b, *c, *d, *e;
999 int i, j; 999 int i, j;
1000 int rc = 0; 1000 int ret = 0;
1001 1001
1002 BN_CTX_start(ctx); 1002 BN_CTX_start(ctx);
1003 1003
@@ -1069,11 +1069,11 @@ test_mod_mul(BIO *bp, BN_CTX *ctx)
1069 } 1069 }
1070 } 1070 }
1071 1071
1072 rc = 1; 1072 ret = 1;
1073 err: 1073 err:
1074 BN_CTX_end(ctx); 1074 BN_CTX_end(ctx);
1075 1075
1076 return rc; 1076 return ret;
1077} 1077}
1078 1078
1079int 1079int
@@ -1081,7 +1081,7 @@ test_mod_exp(BIO *bp, BN_CTX *ctx)
1081{ 1081{
1082 BIGNUM *a, *b, *c, *d, *e; 1082 BIGNUM *a, *b, *c, *d, *e;
1083 int i; 1083 int i;
1084 int rc = 0; 1084 int ret = 0;
1085 1085
1086 BN_CTX_start(ctx); 1086 BN_CTX_start(ctx);
1087 1087
@@ -1202,11 +1202,11 @@ test_mod_exp(BIO *bp, BN_CTX *ctx)
1202 } 1202 }
1203 } 1203 }
1204 1204
1205 rc = 1; 1205 ret = 1;
1206 err: 1206 err:
1207 BN_CTX_end(ctx); 1207 BN_CTX_end(ctx);
1208 1208
1209 return rc; 1209 return ret;
1210} 1210}
1211 1211
1212int 1212int
@@ -1214,7 +1214,7 @@ test_mod_exp_mont_consttime(BIO *bp, BN_CTX *ctx)
1214{ 1214{
1215 BIGNUM *a, *b, *c, *d, *e; 1215 BIGNUM *a, *b, *c, *d, *e;
1216 int i; 1216 int i;
1217 int rc = 0; 1217 int ret = 0;
1218 1218
1219 BN_CTX_start(ctx); 1219 BN_CTX_start(ctx);
1220 1220
@@ -1276,11 +1276,11 @@ test_mod_exp_mont_consttime(BIO *bp, BN_CTX *ctx)
1276 } 1276 }
1277 } 1277 }
1278 1278
1279 rc = 1; 1279 ret = 1;
1280 err: 1280 err:
1281 BN_CTX_end(ctx); 1281 BN_CTX_end(ctx);
1282 1282
1283 return rc; 1283 return ret;
1284} 1284}
1285 1285
1286/* 1286/*
@@ -1294,7 +1294,7 @@ test_mod_exp_mont5(BIO *bp, BN_CTX *ctx)
1294 BIGNUM *b, *n, *c; 1294 BIGNUM *b, *n, *c;
1295 BN_MONT_CTX *mont = NULL; 1295 BN_MONT_CTX *mont = NULL;
1296 int len; 1296 int len;
1297 int rc = 0; 1297 int ret = 0;
1298 1298
1299 BN_CTX_start(ctx); 1299 BN_CTX_start(ctx);
1300 1300
@@ -1437,12 +1437,12 @@ test_mod_exp_mont5(BIO *bp, BN_CTX *ctx)
1437 goto err; 1437 goto err;
1438 } 1438 }
1439 1439
1440 rc = 1; 1440 ret = 1;
1441 err: 1441 err:
1442 BN_CTX_end(ctx); 1442 BN_CTX_end(ctx);
1443 BN_MONT_CTX_free(mont); 1443 BN_MONT_CTX_free(mont);
1444 1444
1445 return rc; 1445 return ret;
1446} 1446}
1447 1447
1448int 1448int
@@ -1450,7 +1450,7 @@ test_exp(BIO *bp, BN_CTX *ctx)
1450{ 1450{
1451 BIGNUM *a, *b, *d, *e; 1451 BIGNUM *a, *b, *d, *e;
1452 int i; 1452 int i;
1453 int rc = 0; 1453 int ret = 0;
1454 1454
1455 BN_CTX_start(ctx); 1455 BN_CTX_start(ctx);
1456 1456
@@ -1490,11 +1490,11 @@ test_exp(BIO *bp, BN_CTX *ctx)
1490 } 1490 }
1491 } 1491 }
1492 1492
1493 rc = 1; 1493 ret = 1;
1494 err: 1494 err:
1495 BN_CTX_end(ctx); 1495 BN_CTX_end(ctx);
1496 1496
1497 return rc; 1497 return ret;
1498} 1498}
1499 1499
1500#ifndef OPENSSL_NO_EC2M 1500#ifndef OPENSSL_NO_EC2M
@@ -1503,7 +1503,7 @@ test_gf2m_add(BIO *bp, BN_CTX *ctx)
1503{ 1503{
1504 BIGNUM *a, *b, *c; 1504 BIGNUM *a, *b, *c;
1505 int i; 1505 int i;
1506 int rc = 0; 1506 int ret = 0;
1507 1507
1508 BN_CTX_start(ctx); 1508 BN_CTX_start(ctx);
1509 1509
@@ -1546,11 +1546,11 @@ test_gf2m_add(BIO *bp, BN_CTX *ctx)
1546 } 1546 }
1547 } 1547 }
1548 1548
1549 rc = 1; 1549 ret = 1;
1550 err: 1550 err:
1551 BN_CTX_end(ctx); 1551 BN_CTX_end(ctx);
1552 1552
1553 return rc; 1553 return ret;
1554} 1554}
1555 1555
1556int 1556int
@@ -1560,7 +1560,7 @@ test_gf2m_mod(BIO *bp, BN_CTX *ctx)
1560 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1560 int p0[] = { 163, 7, 6, 3, 0, -1 };
1561 int p1[] = { 193, 15, 0, -1, 0 }; 1561 int p1[] = { 193, 15, 0, -1, 0 };
1562 int i, j; 1562 int i, j;
1563 int rc = 0; 1563 int ret = 0;
1564 1564
1565 BN_CTX_start(ctx); 1565 BN_CTX_start(ctx);
1566 1566
@@ -1606,11 +1606,11 @@ test_gf2m_mod(BIO *bp, BN_CTX *ctx)
1606 } 1606 }
1607 } 1607 }
1608 1608
1609 rc = 1; 1609 ret = 1;
1610 err: 1610 err:
1611 BN_CTX_end(ctx); 1611 BN_CTX_end(ctx);
1612 1612
1613 return rc; 1613 return ret;
1614} 1614}
1615 1615
1616int 1616int
@@ -1620,7 +1620,7 @@ test_gf2m_mod_mul(BIO *bp, BN_CTX *ctx)
1620 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1620 int p0[] = { 163, 7, 6, 3, 0, -1 };
1621 int p1[] = { 193, 15, 0, -1 }; 1621 int p1[] = { 193, 15, 0, -1 };
1622 int i, j; 1622 int i, j;
1623 int rc = 0; 1623 int ret = 0;
1624 1624
1625 BN_CTX_start(ctx); 1625 BN_CTX_start(ctx);
1626 1626
@@ -1679,11 +1679,11 @@ test_gf2m_mod_mul(BIO *bp, BN_CTX *ctx)
1679 } 1679 }
1680 } 1680 }
1681 1681
1682 rc = 1; 1682 ret = 1;
1683 err: 1683 err:
1684 BN_CTX_end(ctx); 1684 BN_CTX_end(ctx);
1685 1685
1686 return rc; 1686 return ret;
1687} 1687}
1688 1688
1689int 1689int
@@ -1693,7 +1693,7 @@ test_gf2m_mod_sqr(BIO *bp, BN_CTX *ctx)
1693 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1693 int p0[] = { 163, 7, 6, 3, 0, -1 };
1694 int p1[] = { 193, 15, 0, -1 }; 1694 int p1[] = { 193, 15, 0, -1 };
1695 int i, j; 1695 int i, j;
1696 int rc = 0; 1696 int ret = 0;
1697 1697
1698 BN_CTX_start(ctx); 1698 BN_CTX_start(ctx);
1699 1699
@@ -1740,11 +1740,11 @@ test_gf2m_mod_sqr(BIO *bp, BN_CTX *ctx)
1740 } 1740 }
1741 } 1741 }
1742 1742
1743 rc = 1; 1743 ret = 1;
1744 err: 1744 err:
1745 BN_CTX_end(ctx); 1745 BN_CTX_end(ctx);
1746 1746
1747 return rc; 1747 return ret;
1748} 1748}
1749 1749
1750int 1750int
@@ -1754,7 +1754,7 @@ test_gf2m_mod_inv(BIO *bp, BN_CTX *ctx)
1754 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1754 int p0[] = { 163, 7, 6, 3, 0, -1 };
1755 int p1[] = { 193, 15, 0, -1 }; 1755 int p1[] = { 193, 15, 0, -1 };
1756 int i, j; 1756 int i, j;
1757 int rc = 0; 1757 int ret = 0;
1758 1758
1759 BN_CTX_start(ctx); 1759 BN_CTX_start(ctx);
1760 1760
@@ -1797,11 +1797,11 @@ test_gf2m_mod_inv(BIO *bp, BN_CTX *ctx)
1797 } 1797 }
1798 } 1798 }
1799 1799
1800 rc = 1; 1800 ret = 1;
1801 err: 1801 err:
1802 BN_CTX_end(ctx); 1802 BN_CTX_end(ctx);
1803 1803
1804 return rc; 1804 return ret;
1805} 1805}
1806 1806
1807int 1807int
@@ -1811,7 +1811,7 @@ test_gf2m_mod_div(BIO *bp, BN_CTX *ctx)
1811 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1811 int p0[] = { 163, 7, 6, 3, 0, -1 };
1812 int p1[] = { 193, 15, 0, -1 }; 1812 int p1[] = { 193, 15, 0, -1 };
1813 int i, j; 1813 int i, j;
1814 int rc = 0; 1814 int ret = 0;
1815 1815
1816 BN_CTX_start(ctx); 1816 BN_CTX_start(ctx);
1817 1817
@@ -1862,11 +1862,11 @@ test_gf2m_mod_div(BIO *bp, BN_CTX *ctx)
1862 } 1862 }
1863 } 1863 }
1864 1864
1865 rc = 1; 1865 ret = 1;
1866 err: 1866 err:
1867 BN_CTX_end(ctx); 1867 BN_CTX_end(ctx);
1868 1868
1869 return rc; 1869 return ret;
1870} 1870}
1871 1871
1872int 1872int
@@ -1876,7 +1876,7 @@ test_gf2m_mod_exp(BIO *bp, BN_CTX *ctx)
1876 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1876 int p0[] = { 163, 7, 6, 3, 0, -1 };
1877 int p1[] = { 193, 15, 0, -1 }; 1877 int p1[] = { 193, 15, 0, -1 };
1878 int i, j; 1878 int i, j;
1879 int rc = 0; 1879 int ret = 0;
1880 1880
1881 BN_CTX_start(ctx); 1881 BN_CTX_start(ctx);
1882 1882
@@ -1935,11 +1935,11 @@ test_gf2m_mod_exp(BIO *bp, BN_CTX *ctx)
1935 } 1935 }
1936 } 1936 }
1937 1937
1938 rc = 1; 1938 ret = 1;
1939 err: 1939 err:
1940 BN_CTX_end(ctx); 1940 BN_CTX_end(ctx);
1941 1941
1942 return rc; 1942 return ret;
1943} 1943}
1944 1944
1945int 1945int
@@ -1949,7 +1949,7 @@ test_gf2m_mod_sqrt(BIO *bp, BN_CTX *ctx)
1949 int p0[] = { 163, 7, 6, 3, 0, -1 }; 1949 int p0[] = { 163, 7, 6, 3, 0, -1 };
1950 int p1[] = { 193, 15, 0, -1 }; 1950 int p1[] = { 193, 15, 0, -1 };
1951 int i, j; 1951 int i, j;
1952 int rc = 0; 1952 int ret = 0;
1953 1953
1954 BN_CTX_start(ctx); 1954 BN_CTX_start(ctx);
1955 1955
@@ -1996,11 +1996,11 @@ test_gf2m_mod_sqrt(BIO *bp, BN_CTX *ctx)
1996 } 1996 }
1997 } 1997 }
1998 1998
1999 rc = 1; 1999 ret = 1;
2000 err: 2000 err:
2001 BN_CTX_end(ctx); 2001 BN_CTX_end(ctx);
2002 2002
2003 return rc; 2003 return ret;
2004} 2004}
2005 2005
2006int 2006int
@@ -2010,7 +2010,7 @@ test_gf2m_mod_solve_quad(BIO *bp, BN_CTX *ctx)
2010 int p0[] = { 163, 7, 6, 3, 0, -1 }; 2010 int p0[] = { 163, 7, 6, 3, 0, -1 };
2011 int p1[] = { 193, 15, 0, -1 }; 2011 int p1[] = { 193, 15, 0, -1 };
2012 int i, j, s = 0, t; 2012 int i, j, s = 0, t;
2013 int rc = 0; 2013 int ret = 0;
2014 2014
2015 BN_CTX_start(ctx); 2015 BN_CTX_start(ctx);
2016 2016
@@ -2079,11 +2079,11 @@ test_gf2m_mod_solve_quad(BIO *bp, BN_CTX *ctx)
2079 goto err; 2079 goto err;
2080 } 2080 }
2081 2081
2082 rc = 1; 2082 ret = 1;
2083 err: 2083 err:
2084 BN_CTX_end(ctx); 2084 BN_CTX_end(ctx);
2085 2085
2086 return rc; 2086 return ret;
2087} 2087}
2088#endif 2088#endif
2089 2089
@@ -2111,7 +2111,7 @@ test_kron(BIO *bp, BN_CTX *ctx)
2111 BN_GENCB *cb = NULL; 2111 BN_GENCB *cb = NULL;
2112 int i; 2112 int i;
2113 int legendre, kronecker; 2113 int legendre, kronecker;
2114 int rc = 0; 2114 int ret = 0;
2115 2115
2116 BN_CTX_start(ctx); 2116 BN_CTX_start(ctx);
2117 2117
@@ -2199,12 +2199,12 @@ test_kron(BIO *bp, BN_CTX *ctx)
2199 2199
2200 putc('\n', stderr); 2200 putc('\n', stderr);
2201 2201
2202 rc = 1; 2202 ret = 1;
2203 err: 2203 err:
2204 BN_GENCB_free(cb); 2204 BN_GENCB_free(cb);
2205 BN_CTX_end(ctx); 2205 BN_CTX_end(ctx);
2206 2206
2207 return rc; 2207 return ret;
2208} 2208}
2209 2209
2210int 2210int
@@ -2213,7 +2213,7 @@ test_sqrt(BIO *bp, BN_CTX *ctx)
2213 BIGNUM *a, *p, *r; 2213 BIGNUM *a, *p, *r;
2214 BN_GENCB *cb = NULL; 2214 BN_GENCB *cb = NULL;
2215 int i, j; 2215 int i, j;
2216 int rc = 0; 2216 int ret = 0;
2217 2217
2218 BN_CTX_start(ctx); 2218 BN_CTX_start(ctx);
2219 2219
@@ -2295,12 +2295,12 @@ test_sqrt(BIO *bp, BN_CTX *ctx)
2295 putc('\n', stderr); 2295 putc('\n', stderr);
2296 } 2296 }
2297 2297
2298 rc = 1; 2298 ret = 1;
2299 err: 2299 err:
2300 BN_GENCB_free(cb); 2300 BN_GENCB_free(cb);
2301 BN_CTX_end(ctx); 2301 BN_CTX_end(ctx);
2302 2302
2303 return rc; 2303 return ret;
2304} 2304}
2305 2305
2306int 2306int
@@ -2308,7 +2308,7 @@ test_lshift(BIO *bp, BN_CTX *ctx, int use_lst)
2308{ 2308{
2309 BIGNUM *a, *b, *c, *d; 2309 BIGNUM *a, *b, *c, *d;
2310 int i; 2310 int i;
2311 int rc = 0; 2311 int ret = 0;
2312 2312
2313 BN_CTX_start(ctx); 2313 BN_CTX_start(ctx);
2314 2314
@@ -2360,11 +2360,11 @@ test_lshift(BIO *bp, BN_CTX *ctx, int use_lst)
2360 } 2360 }
2361 } 2361 }
2362 2362
2363 rc = 1; 2363 ret = 1;
2364 err: 2364 err:
2365 BN_CTX_end(ctx); 2365 BN_CTX_end(ctx);
2366 2366
2367 return rc; 2367 return ret;
2368} 2368}
2369 2369
2370int 2370int
@@ -2372,7 +2372,7 @@ test_lshift1(BIO *bp, BN_CTX *ctx)
2372{ 2372{
2373 BIGNUM *a, *b, *c; 2373 BIGNUM *a, *b, *c;
2374 int i; 2374 int i;
2375 int rc = 0; 2375 int ret = 0;
2376 2376
2377 BN_CTX_start(ctx); 2377 BN_CTX_start(ctx);
2378 2378
@@ -2406,11 +2406,11 @@ test_lshift1(BIO *bp, BN_CTX *ctx)
2406 CHECK_GOTO(bn_copy(a, b)); 2406 CHECK_GOTO(bn_copy(a, b));
2407 } 2407 }
2408 2408
2409 rc = 1; 2409 ret = 1;
2410 err: 2410 err:
2411 BN_CTX_end(ctx); 2411 BN_CTX_end(ctx);
2412 2412
2413 return rc; 2413 return ret;
2414} 2414}
2415 2415
2416int 2416int
@@ -2418,7 +2418,7 @@ test_rshift(BIO *bp, BN_CTX *ctx)
2418{ 2418{
2419 BIGNUM *a, *b, *c, *d, *e; 2419 BIGNUM *a, *b, *c, *d, *e;
2420 int i; 2420 int i;
2421 int rc = 0; 2421 int ret = 0;
2422 2422
2423 BN_CTX_start(ctx); 2423 BN_CTX_start(ctx);
2424 2424
@@ -2457,11 +2457,11 @@ test_rshift(BIO *bp, BN_CTX *ctx)
2457 } 2457 }
2458 } 2458 }
2459 2459
2460 rc = 1; 2460 ret = 1;
2461 err: 2461 err:
2462 BN_CTX_end(ctx); 2462 BN_CTX_end(ctx);
2463 2463
2464 return rc; 2464 return ret;
2465} 2465}
2466 2466
2467int 2467int
@@ -2469,7 +2469,7 @@ test_rshift1(BIO *bp, BN_CTX *ctx)
2469{ 2469{
2470 BIGNUM *a, *b, *c; 2470 BIGNUM *a, *b, *c;
2471 int i; 2471 int i;
2472 int rc = 0; 2472 int ret = 0;
2473 2473
2474 BN_CTX_start(ctx); 2474 BN_CTX_start(ctx);
2475 2475
@@ -2502,11 +2502,11 @@ test_rshift1(BIO *bp, BN_CTX *ctx)
2502 CHECK_GOTO(bn_copy(a, b)); 2502 CHECK_GOTO(bn_copy(a, b));
2503 } 2503 }
2504 2504
2505 rc = 1; 2505 ret = 1;
2506 err: 2506 err:
2507 BN_CTX_end(ctx); 2507 BN_CTX_end(ctx);
2508 2508
2509 return rc; 2509 return ret;
2510} 2510}
2511 2511
2512int 2512int
@@ -2524,7 +2524,7 @@ test_mod_exp_sizes(BIO *bp, BN_CTX *ctx)
2524 BN_MONT_CTX *mont_ctx = NULL; 2524 BN_MONT_CTX *mont_ctx = NULL;
2525 BIGNUM *p, *x, *y, *r, *r2; 2525 BIGNUM *p, *x, *y, *r, *r2;
2526 int size; 2526 int size;
2527 int rc = 0; 2527 int ret = 0;
2528 2528
2529 BN_CTX_start(ctx); 2529 BN_CTX_start(ctx);
2530 CHECK_GOTO(p = BN_CTX_get(ctx)); 2530 CHECK_GOTO(p = BN_CTX_get(ctx));
@@ -2562,10 +2562,10 @@ test_mod_exp_sizes(BIO *bp, BN_CTX *ctx)
2562 } 2562 }
2563 } 2563 }
2564 2564
2565 rc = 1; 2565 ret = 1;
2566 err: 2566 err:
2567 BN_CTX_end(ctx); 2567 BN_CTX_end(ctx);
2568 BN_MONT_CTX_free(mont_ctx); 2568 BN_MONT_CTX_free(mont_ctx);
2569 2569
2570 return rc; 2570 return ret;
2571} 2571}