VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.5/util/fips-checksums.sh

Last change on this file was 104078, checked in by vboxsync, 2 months ago

openssl-3.1.5: Applied and adjusted our OpenSSL changes to 3.1.4. bugref:10638

File size: 981 bytes
Line 
1#! /bin/sh
2
3HERE=`dirname $0`
4
5for f in "$@"; do
6 # It's worth nothing that 'openssl sha256 -r' assumes that all input
7 # is binary. This isn't quite true, and we know better, so we convert
8 # the '*stdin' marker to the filename preceded by a space. See the
9 # sha1sum manual for a specification of the format.
10 case "$f" in
11 *.c | *.c.in | *.h | *.h.in | *.inc)
12 cat "$f" \
13 | $HERE/lang-compress.pl 'C' \
14 | unifdef -DFIPS_MODULE=1 \
15 | openssl sha256 -r \
16 | sed -e "s| \\*stdin| $f|"
17 ;;
18 *.pl )
19 cat "$f" \
20 | $HERE/lang-compress.pl 'perl' \
21 | openssl sha256 -r \
22 | sed -e "s| \\*stdin| $f|"
23 ;;
24 *.S )
25 cat "$f" \
26 | $HERE/lang-compress.pl 'S' \
27 | openssl sha256 -r \
28 | sed -e "s| \\*stdin| $f|"
29 ;;
30 esac
31done
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use