mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
Windows: Code signing with cross-signed certificates
Permit the version of signtool.exe to be specified with the SIGNTOOL environment variable. Add the CODESIGN_CROSS_CERT environment variable to specify the cross-signed certificate to be used LICENSE MIT Change-Id: Ib549e31f1f240e0de2cedfabac9bb998ee58a517 Reviewed-on: http://gerrit.openafs.org/825 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Jeffrey Altman <jaltman@openafs.org> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
7d44a08771
commit
65db615024
@ -314,9 +314,15 @@ _VC_MANIFEST_EMBED_EXE=
|
||||
_VC_MANIFEST_EMBED_DLL=
|
||||
!ENDIF
|
||||
|
||||
!IF "$(SIGNTOOL)" == ""
|
||||
SIGNTOOL=signtool.exe
|
||||
!ENDIF
|
||||
|
||||
!IF DEFINED(CODESIGN_DESC) && DEFINED(CODESIGN_URL) && DEFINED(CODESIGN_TIMESTAMP)
|
||||
CODESIGN_USERLAND= signtool.exe sign /a /d "$(CODESIGN_DESC)" /du $(CODESIGN_URL) \
|
||||
/t $(CODESIGN_TIMESTAMP) /v $@
|
||||
CODESIGN_USERLAND= "$(SIGNTOOL)" sign /a /d "$(CODESIGN_DESC)" /du $(CODESIGN_URL) /t $(CODESIGN_TIMESTAMP) /v $@
|
||||
!IF "$(CODESIGN_CROSS_CERT)" != ""
|
||||
CODESIGN_KERNEL= "$(SIGNTOOL)" sign /a /d "$(CODESIGN_DESC)" /du $(CODESIGN_URL) /t $(CODESIGN_TIMESTAMP) /ac "$(CODESIGN_CROSS_CERT)" /v
|
||||
!ENDIF
|
||||
!ELSE
|
||||
CODESIGN_USERLAND=
|
||||
!ENDIF
|
||||
|
@ -321,9 +321,17 @@ _VC_MANIFEST_EMBED_EXE=
|
||||
_VC_MANIFEST_EMBED_DLL=
|
||||
!ENDIF
|
||||
|
||||
!IF "$(SIGNTOOL)" == ""
|
||||
SIGNTOOL=signtool.exe
|
||||
!ENDIF
|
||||
|
||||
!IF DEFINED(CODESIGN_DESC) && DEFINED(CODESIGN_URL) && DEFINED(CODESIGN_TIMESTAMP)
|
||||
CODESIGN_USERLAND= signtool.exe sign /a /d "$(CODESIGN_DESC)" /du $(CODESIGN_URL) \
|
||||
CODESIGN_USERLAND= $(SIGNTOOL) sign /a /d "$(CODESIGN_DESC)" /du $(CODESIGN_URL) \
|
||||
/t $(CODESIGN_TIMESTAMP) /v $@
|
||||
!IF "$(CODESIGN_CROSS_CERT)" != ""
|
||||
CODESIGN_KERNEL= $(SIGNTOOL) sign /a /d "$(CODESIGN_DESC)" /du $(CODESIGN_URL) \
|
||||
/t $(CODESIGN_TIMESTAMP) /ac "$(CODESIGN_CROSS_CERT)" /v
|
||||
!ENDIF
|
||||
!ELSE
|
||||
CODESIGN_USERLAND=
|
||||
!ENDIF
|
||||
|
Loading…
Reference in New Issue
Block a user