Mercurial > dropbear
view libtommath/gen.pl @ 1635:c9b5017b0a7b
drop obsolete definition for MAX_KEXHASHBUF (#65)
The last code to make use of MAX_KEXHASHBUF was removed in 2005:
https://github.com/mkj/dropbear/commit/736f370dce614b717193f45d084e9e009de723ce
Signed-off-by: Andre McCurdy <[email protected]>
author | Andre McCurdy <armccurdy@gmail.com> |
---|---|
date | Wed, 20 Mar 2019 08:01:41 -0700 |
parents | 8bba51a55704 |
children |
line wrap: on
line source
#!/usr/bin/perl -w # # Generates a "single file" you can use to quickly # add the whole source without any makefile troubles # use strict; use warnings; open(my $out, '>', 'mpi.c') or die "Couldn't open mpi.c for writing: $!"; foreach my $filename (glob 'bn*.c') { open(my $src, '<', $filename) or die "Couldn't open $filename for reading: $!"; print {$out} "/* Start: $filename */\n"; print {$out} $_ while <$src>; print {$out} "\n/* End: $filename */\n\n"; close $src or die "Error closing $filename after reading: $!"; } print {$out} "\n/* EOF */\n"; close $out or die "Error closing mpi.c after writing: $!"; system('perl -pli -e "s/\s*$//" mpi.c');