Last change
on this file since 101021 was 101021, checked in by vboxsync, 15 months ago |
openssl-3.1.2: Applied and adjusted our OpenSSL changes to 3.1.0. bugref:10519
|
File size:
981 bytes
|
Line | |
---|
1 | #! /bin/sh
|
---|
2 |
|
---|
3 | HERE=`dirname $0`
|
---|
4 |
|
---|
5 | for 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
|
---|
31 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.