Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2018 07:09:09 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r338785 - projects/openssl111/usr.bin/factor
Message-ID:  <201809190709.w8J79A0e072205@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Sep 19 07:09:09 2018
New Revision: 338785
URL: https://svnweb.freebsd.org/changeset/base/338785

Log:
  Make factor(6) buildable.

Modified:
  projects/openssl111/usr.bin/factor/factor.c

Modified: projects/openssl111/usr.bin/factor/factor.c
==============================================================================
--- projects/openssl111/usr.bin/factor/factor.c	Wed Sep 19 07:08:27 2018	(r338784)
+++ projects/openssl111/usr.bin/factor/factor.c	Wed Sep 19 07:09:09 2018	(r338785)
@@ -215,8 +215,7 @@ pr_fact(BIGNUM *val)
 			if (!BN_sqr(bnfact, bnfact, ctx))
 				errx(1, "error in BN_sqr()");
 			if (BN_cmp(bnfact, val) > 0 ||
-			    BN_is_prime(val, PRIME_CHECKS,
-					NULL, NULL, NULL) == 1)
+			    BN_is_prime_ex(val, PRIME_CHECKS, NULL, NULL) == 1)
 				pr_print(val);
 			else
 				pollard_pminus1(val);
@@ -289,8 +288,7 @@ newbase:
 			errx(1, "error in BN_gcd()");
 
 		if (!BN_is_one(x)) {
-			if (BN_is_prime(x, PRIME_CHECKS, NULL, NULL,
-			    NULL) == 1)
+			if (BN_is_prime_ex(x, PRIME_CHECKS, NULL, NULL) == 1)
 				pr_print(x);
 			else
 				pollard_pminus1(x);
@@ -299,7 +297,7 @@ newbase:
 			BN_div(num, NULL, val, x, ctx);
 			if (BN_is_one(num))
 				return;
-			if (BN_is_prime(num, PRIME_CHECKS, NULL, NULL,
+			if (BN_is_prime_ex(num, PRIME_CHECKS, NULL,
 			    NULL) == 1) {
 				pr_print(num);
 				fflush(stdout);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809190709.w8J79A0e072205>