Changeset 95676 in vbox for trunk/src/VBox/Runtime/tools
- Timestamp:
- Jul 17, 2022 3:01:19 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152325
- Location:
- trunk/src/VBox/Runtime/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/tools/Makefile.kmk
r95675 r95676 74 74 # RTSignTool - Signing utility - build version. Signed on windows so we can get the certificate from it. 75 75 BLDPROGS += bldRTSignTool 76 bldRTSignTool_TEMPLATE := VBoxAdvBldProg77 bldRTSignTool_INCS := ../include78 bldRTSignTool_SOURCES := RTSignTool.cpp79 bldRTSignTool_DEFS := IPRT_IN_BUILD_TOOL80 bldRTSignTool_LIBS.win := Crypt32.lib NCrypt.lib76 bldRTSignTool_TEMPLATE := VBoxAdvBldProg 77 bldRTSignTool_INCS := ../include 78 bldRTSignTool_SOURCES := RTSignTool.cpp 79 bldRTSignTool_DEFS := IPRT_IN_BUILD_TOOL 80 bldRTSignTool_LIBS.win := Crypt32.lib NCrypt.lib 81 81 bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS) 82 82 if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE) 83 83 bldRTSignTool_POST_CMDS.darwin = $(call VBOX_SIGN_MACHO_FN,$(out),org.virtualbox.org.bldtool.$(target)) 84 endif 85 ifndef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 86 bldRTSignTool_DEFS += IPRT_SIGNTOOL_NO_SIGNING 87 else # RuntimeBldProg is missing a lot and is built w/o IPRT_WITH_OPENSSL. So, include missing and rebuilt openssl deps. 88 bldRTSignTool_SDKS += VBOX_OPENSSL_BLDPROG 89 bldRTSignTool_DEFS += IPRT_WITH_OPENSSL 90 bldRTSignTool_SOURCES += \ 91 ../common/string/RTStrICmpAscii.cpp \ 92 ../common/checksum/alt-sha3.cpp \ 93 ../common/crypto/store-inmem.cpp \ 94 ../common/crypto/store-cert-add-basic.cpp \ 95 ../common/crypto/rsa-core.cpp \ 96 ../common/crypto/rsa-asn1-decoder.cpp \ 97 ../common/crypto/rsa-init.cpp \ 98 ../common/crypto/rsa-sanity.cpp \ 99 ../common/crypto/RTCrStoreCertAddFromJavaKeyStore.cpp \ 100 ../common/crypto/pkix-signature-core.cpp \ 101 ../common/crypto/pkix-signature-builtin.cpp \ 102 ../common/crypto/pkix-signature-rsa.cpp \ 103 \ 104 ../common/crypto/store.cpp \ 105 ../common/crypto/digest-builtin.cpp \ 106 ../common/crypto/iprt-openssl.cpp\ 107 ../common/crypto/key.cpp \ 108 ../common/crypto/key-file.cpp \ 109 ../common/crypto/key-openssl.cpp \ 110 ../common/crypto/pkcs7-core.cpp \ 111 ../common/crypto/pkcs7-sign.cpp \ 112 ../common/crypto/RTCrRandBytes-openssl.cpp 113 84 114 endif 85 115 endif -
trunk/src/VBox/Runtime/tools/RTSignTool.cpp
r95675 r95676 1562 1562 } 1563 1563 1564 #ifndef IPRT_ IN_BUILD_TOOL1564 #ifndef IPRT_SIGNTOOL_NO_SIGNING 1565 1565 1566 1566 static PRTCRPKCS7ATTRIBUTE SignToolPkcs7_AuthAttribAppend(PRTCRPKCS7ATTRIBUTES pAuthAttribs) … … 2628 2628 } 2629 2629 2630 #endif /* !IPRT_ IN_BUILD_TOOL*/2630 #endif /* !IPRT_SIGNTOOL_NO_SIGNING */ 2631 2631 2632 2632 … … 3098 3098 * Option handlers shared by 'sign-exe', 'sign-cat', 'add-timestamp-exe-signature' and others. * 3099 3099 *********************************************************************************************************************************/ 3100 #ifndef IPRT_ IN_BUILD_TOOL3100 #ifndef IPRT_SIGNTOOL_NO_SIGNING 3101 3101 3102 3102 static RTEXITCODE HandleOptAddCert(PRTCRSTORE phStore, const char *pszFile) … … 3337 3337 } 3338 3338 3339 #endif /* !IPRT_ IN_BUILD_TOOL*/3339 #endif /* !IPRT_SIGNTOOL_NO_SIGNING */ 3340 3340 3341 3341 … … 3343 3343 * The 'add-timestamp-exe-signature' command. * 3344 3344 *********************************************************************************************************************************/ 3345 #ifndef IPRT_ IN_BUILD_TOOL3345 #ifndef IPRT_SIGNTOOL_NO_SIGNING 3346 3346 3347 3347 static RTEXITCODE HelpAddTimestampExeSignature(PRTSTREAM pStrm, RTSIGNTOOLHELP enmLevel) … … 3448 3448 } 3449 3449 3450 #endif /*!IPRT_ IN_BUILD_TOOL*/3450 #endif /*!IPRT_SIGNTOOL_NO_SIGNING */ 3451 3451 3452 3452 … … 3454 3454 * The 'sign-exe' command. * 3455 3455 *********************************************************************************************************************************/ 3456 #ifndef IPRT_ IN_BUILD_TOOL3456 #ifndef IPRT_SIGNTOOL_NO_SIGNING 3457 3457 3458 3458 static RTEXITCODE HelpSign(PRTSTREAM pStrm, RTSIGNTOOLHELP enmLevel) … … 3628 3628 } 3629 3629 3630 #endif /*!IPRT_ IN_BUILD_TOOL*/3630 #endif /*!IPRT_SIGNTOOL_NO_SIGNING */ 3631 3631 3632 3632 … … 5206 5206 { "add-nested-exe-signature", HandleAddNestedExeSignature, HelpAddNestedExeSignature }, 5207 5207 { "add-nested-cat-signature", HandleAddNestedCatSignature, HelpAddNestedCatSignature }, 5208 #ifndef IPRT_ IN_BUILD_TOOL5208 #ifndef IPRT_SIGNTOOL_NO_SIGNING 5209 5209 { "add-timestamp-exe-signature", HandleAddTimestampExeSignature, HelpAddTimestampExeSignature }, 5210 5210 { "sign", HandleSign, HelpSign },
Note:
See TracChangeset
for help on using the changeset viewer.