Commit f4675a10 authored by Richard Levitte's avatar Richard Levitte
Browse files

Fix crypto/bn/bn_prime.pl to generate correctly formatted bn_prime.h



It was still generating EAY style source.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2889)
parent 366a997f
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -106,14 +106,14 @@ printf "#else\n";
printf "# define NUMPRIMES %d\n",$eight;
printf "typedef unsigned char prime_t;\n";
printf "#endif\n";
print "static const prime_t primes[NUMPRIMES]=\n\t{\n\t";
print "static const prime_t primes[NUMPRIMES] = {";
$init=0;
for ($i=0; $i <= $#primes; $i++)
	{
	printf "\n#ifndef EIGHT_BIT\n\t" if ($primes[$i] > 256) && !($init++);
	printf("\n\t") if (($i%8) == 0) && ($i != 0);
	printf("%4d,",$primes[$i]);
	printf "\n#ifndef EIGHT_BIT\n    " if ($primes[$i] > 256) && !($init++);
	printf("\n    ") if ($i%8) == 0;
	printf(" %5d,",$primes[$i]);
	}
print "\n#endif\n\t};\n";
print "\n#endif\n};\n";