]> git.saurik.com Git - apple/security.git/blob - OSX/codesign_tests/teamid.sh
Security-59754.41.1.tar.gz
[apple/security.git] / OSX / codesign_tests / teamid.sh
1 #!/bin/bash
2
3 echo "[TEST] team identifier verification"
4
5 echo "[BEGIN] executable with false team identifier"
6
7 MY_TEMP=$(mktemp /tmp/codesign.XXXXXX)
8 codesign --verify --verbose=3 $1 2> $MY_TEMP
9
10 if grep -s "invalid or unsupported format for signature" $MY_TEMP
11 then
12 echo "[PASS]"
13 else
14 echo "[FAIL]"
15 fi
16 rm -f $MY_TEMP
17