File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/tools/osxcross-macports b/tools/osxcross-macports
2
+ index 3e87735..5c48e4e 100755
3
+ --- a/tools/osxcross-macports
4
+ +++ b/tools/osxcross-macports
5
+ @@ -250,8 +250,10 @@ verifyFileIntegrity()
6
+ getFile $PUBKEYURL "$PUBKEY"
7
+ fi
8
+
9
+ - local rmd160=$(openssl rmd160 "$PUBKEY" | awk '{print $2}')
10
+ - local sha1=$(openssl sha1 "$PUBKEY" | awk '{print $2}')
11
+ + errorMsg "set rmd160"
12
+ + local rmd160=$(openssl rmd160 -provider legacy "$PUBKEY" | awk '{print $2}')
13
+ + errorMsg "set sha1"
14
+ + local sha1=$(openssl sha1 "$PUBKEY" | awk '{print $2}')
15
+
16
+ if [ "$rmd160" != "$PUBKEYRMD160" -o "$sha1" != "$PUBKEYSHA1" ]; then
17
+ errorMsg "invalid macports public key (hash check failed)"
18
+ @@ -262,7 +264,7 @@ verifyFileIntegrity()
19
+
20
+ set +e
21
+
22
+ - openssl dgst -ripemd160 -verify "$PUBKEY" -signature \
23
+ + openssl dgst -provider legacy -provider default -ripemd160 -verify "$PUBKEY" -signature \
24
+ "$CACHE/$file.rmd160" "$CACHE/$file" 1>/dev/null
25
+
26
+ if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments