mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-07-04 04:02:47 -05:00
some options warnings
This commit is contained in:

committed by
Michał Trojnara

parent
de4e85f35a
commit
b512aa534c
@ -20,9 +20,9 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE files
|
||||
# Warning: -ph option is only valid for PE files
|
||||
|
||||
# MSI file
|
||||
# Command is not supported for non-PE files
|
||||
# Warning: -ph option is only valid for PE files
|
||||
|
||||
exit 0
|
||||
|
@ -25,27 +25,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Error: Cannot sign cab files with flag bits set!
|
||||
# cfhead_Flags 0x1e is set here:
|
||||
# https://github.com/mtrojnar/osslsigncode/blob/0bea1ac8f6d61ed42dd154305a4d5b8c27478ad0/osslsigncode.c#L2936
|
||||
test_name="112. Signing a CAB file with the nest flag"
|
||||
printf "\n%s\n" "$test_name"
|
||||
if [ -s "test.ex_" ]
|
||||
then
|
||||
faketime -f '@2019-01-01 00:00:00' /bin/bash -c '
|
||||
script_path=$(pwd)
|
||||
../../osslsigncode sign -h sha256 \
|
||||
-certs "${script_path}/../certs/cert.pem" -key "${script_path}/../certs/key.pem" \
|
||||
-in "test.ex_" -out "test_112_signed.ex_"
|
||||
../../osslsigncode sign -h sha512 \
|
||||
-nest \
|
||||
-certs "${script_path}/../certs/cert.pem" -key "${script_path}/../certs/key.pem" \
|
||||
-in "test_112_signed.ex_" -out "test_112.ex_"'
|
||||
verify_signature "$?" "112" "ex_" "UNUSED_PATTERN" "UNUSED_PATTERN" "ASCII" "SHA256" "SHA512"
|
||||
test_result "$?" "$test_name"
|
||||
else
|
||||
printf "Test skipped\n"
|
||||
fi
|
||||
# Error: -nest option is only valid for PE/MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="113. Signing a MSI file with the nest flag"
|
||||
|
@ -22,7 +22,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="312. Extracting the signature from the MSI file"
|
||||
|
@ -19,7 +19,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="322. Attaching the signature to the MSI file"
|
||||
|
@ -22,7 +22,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="332. Removing the signature from the MSI file"
|
||||
|
@ -23,7 +23,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="362. Adding an unauthenticated blob to the MSI file"
|
||||
|
@ -23,7 +23,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="372. Adding an authenticode timestamp to the MSI file"
|
||||
|
@ -23,7 +23,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="382. Adding an RFC 3161 timestamp to the MSI file"
|
||||
|
@ -25,7 +25,7 @@ if [ -s "test.exe" ]
|
||||
fi
|
||||
|
||||
# CAB file
|
||||
# Command is not supported for non-PE
|
||||
# Command is not supported for non-PE/non-MSI files
|
||||
|
||||
# MSI file
|
||||
test_name="402. Comparing the leaf certificate hash against specified SHA256 message digest for the MSI file"
|
||||
|
@ -5,7 +5,7 @@
|
||||
. $(dirname $0)/../test_library
|
||||
|
||||
# PE file
|
||||
#
|
||||
# Warning: -jp option is only valid for CAB files
|
||||
|
||||
# CAB file
|
||||
test_name="511. Signing a CAB file with jp low option"
|
||||
@ -25,6 +25,6 @@ if [ -s "test.ex_" ]
|
||||
fi
|
||||
|
||||
# MSI file
|
||||
#
|
||||
# Warning: -jp option is only valid for CAB files
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user