VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.9/util/fips-checksums.sh@ 100906

Last change on this file since 100906 was 100487, checked in by vboxsync, 17 months ago

openssl-3.0.9: Applied and adjusted our OpenSSL changes we made to 3.0.7. bugref:10484

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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette