Changeset 95676 in vbox
- Timestamp:
- Jul 17, 2022 3:01:19 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r95651 r95676 903 903 # Enables full VM encryption support @bugref{9955}. 904 904 VBOX_WITH_FULL_VM_ENCRYPTION = 1 905 # Enables the 'sign' command in bldRTSignTool. We may need this on windows. 906 if1of ($(KBUILD_TARGET), win) 907 VBOX_WITH_BLD_RTSIGNTOOL_SIGNING = 1 908 endif 905 909 ## @} 906 910 … … 4779 4783 $(PATH_STAGE_LIB)/VBox-libssl-x86$(VBOX_SUFF_LIB) \ 4780 4784 $(PATH_STAGE_LIB)/VBox-libcrypto-x86$(VBOX_SUFF_LIB) 4785 4786 ifdef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 4787 SDK_VBOX_OPENSSL_BLDPROG := OpenSSL - Build tools verison (i.e. bldRTSignTool) 4788 SDK_VBOX_OPENSSL_BLDPROG_INCS ?= $(SDK_VBOX_OPENSSL_VBOX_DEFAULT_INCS) 4789 SDK_VBOX_OPENSSL_BLDPROG_ORDERDEPS ?= $(crypto-headers_1_TARGET) 4790 if !defined(VBOX_ONLY_SDK) \ 4791 && ("$(SDK_VBOX_OPENSSL_INCS)" == "$(SDK_VBOX_OPENSSL_VBOX_DEFAULT_INCS)") 4792 SDK_VBOX_OPENSSL_BLDPROG_DEPS ?= $(SDK_VBOX_OPENSSL_INCS)/openssl/openssl-mangling.h 4793 endif 4794 SDK_VBOX_OPENSSL_BLDPROG_LIBS ?= \ 4795 $(PATH_STAGE_LIB)/VBoxBldProg-libssl$(VBOX_SUFF_LIB) \ 4796 $(PATH_STAGE_LIB)/VBoxBldProg-libcrypto$(VBOX_SUFF_LIB) 4797 endif 4781 4798 4782 4799 SDK_VBOX_OPENSSL2 := This is what you should be using! It links against VBoxRT. -
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 }, -
trunk/src/libs/openssl-3.0.3/Config.kmk
r95261 r95676 320 320 TEMPLATE_LIBCRYPTOTST_LIBS = $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) $(TEMPLATE_VBOXR3TSTEXE_LIBS) 321 321 322 323 ifdef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 324 # 325 # Build program versions of LIBCRYPTO and SUBLIBCRYPTO for bldRTSignTool. 326 # 327 TEMPLATE_VBoxLibCryptoBldProg = Build program template the OpenSSL crypto library. 328 TEMPLATE_VBoxLibCryptoBldProg_EXTENDS := VBoxAdvBldProg 329 TEMPLATE_VBoxLibCryptoBldProg_DEFS = $(TEMPLATE_VBoxAdvBldProg_DEFS) $(TEMPLATE_LIBCRYPTO_DEFS) 330 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win = $(TEMPLATE_VBoxAdvBldProg_CFLAGS.win) $(subst $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS.win),, $(TEMPLATE_LIBCRYPTO_CFLAGS.win)) 331 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4057 # refcount.h(137): warning C4057: 'function': 'volatile long *' differs in indirection to slightly different base types from 'volatile int *' 332 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4100 # refcount.h(135): warning C4100: 'lock': unreferenced formal parameter 333 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4132 # curve25519.c(5497): warning C4132: 'allzeroes': const object should be initialized 334 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4189 # eng_list.c(373): warning C4189: 'load_dir': local variable is initialized but not referenced 335 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4245 # bn_div.c(353): warning C4245: '=': conversion from '__int64' to 'unsigned __int64', signed/unsigned mismatch 336 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4255 # ctype.c(314): warning C4255: 'ossl_c_locale': no function prototype given: converting '()' to '(void)' 337 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4267 # p12_utl.c(23): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data 338 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4389 # encoder_pkey.c(110): warning C4389: '!=': signed/unsigned mismatch 339 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4668 # limits.h(70): warning C4668: '__STDC_WANT_SECURE_LIB__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' 340 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.win += -wd4702 # ctrl_params_translate.c(681) : warning C4702: unreachable code 341 TEMPLATE_VBoxLibCryptoBldProg_CFLAGS.freebsd = $(TEMPLATE_VBoxAdvBldProg_CFLAGS.freebsd) $(subst $(TEMPLATE_VBoxR3RuntimeDllNonPedantic_CFLAGS.freebsd),, $(TEMPLATE_LIBCRYPTO_CFLAGS.freebsd)) 342 TEMPLATE_VBoxLibCryptoBldProg_INCS = $(TEMPLATE_LIBCRYPTO_INCS) $(TEMPLATE_VBoxAdvBldProg_INCS) 343 TEMPLATE_VBoxLibCryptoBldProg_INTERMEDIATES = $(TEMPLATE_VBoxAdvBldProg_INTERMEDIATES) $(TEMPLATE_LIBCRYPTO_INTERMEDIATES) 344 345 TEMPLATE_VBoxSubLibCryptoBldProg = Build program template a OpenSSL crypto sub-library. 346 TEMPLATE_VBoxSubLibCryptoBldProg_EXTENDS := VBoxLibCryptoBldProg 347 TEMPLATE_VBoxSubLibCryptoBldProg_INSTTYPE = none 348 endif # VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 349 350 322 351 # 323 352 # 32-bit version of LIBCRYPTO and SUBLIBCRYPTO. -
trunk/src/libs/openssl-3.0.3/crypto/Makefile.kmk
r94828 r95676 153 153 154 154 155 ifdef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 156 # 157 # The build program libcrypto version. 158 # 159 LIBRARIES += VBoxBldProg-libcrypto 160 VBoxBldProg-libcrypto = For bldRTSignTool 161 VBoxBldProg-libcrypto_EXTENDS = VBox-libcrypto 162 VBoxBldProg-libcrypto_TEMPLATE = VBoxLibCryptoBldProg 163 VBoxBldProg-libcrypto_DEFS = $(VBox-libcrypto_DEFS) 164 VBoxBldProg-libcrypto_SOURCES = \ 165 $(filter %.c %.cpp,$(VBox-libcrypto_SOURCES)) \ 166 $(PATH_STAGE_LIB)/VBoxBldProg-libproviders$(VBOX_SUFF_LIB) \ 167 $(foreach sublib,$(VBOX_CRYPTO_SUBLIBS), $(VBoxBldProg-$(sublib)_1_TARGET)) 168 define def_VBoxBldProg_libcrypto_inherit 169 LIBRARIES += VBoxBldProg-$(sublib) 170 VBoxBldProg-$(sublib) = bldRTSignTool version of $(sublib) 171 VBoxBldProg-$(sublib)_EXTENDS = $(sublib) 172 VBoxBldProg-$(sublib)_EXTENDS_BY = appending 173 VBoxBldProg-$(sublib)_TEMPLATE = VBoxSubLibCryptoBldProg 174 VBoxBldProg-$(sublib)_DEFPATH = $($(sublib)_DEFPATH) 175 ## @todo kBuild: DEFPATH isn't inherited! FIXME! 176 endef 177 $(foreach sublib,$(VBOX_CRYPTO_SUBLIBS), $(eval $(def_VBoxBldProg_libcrypto_inherit))) 178 179 endif # VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 180 181 155 182 # 156 183 # ... -
trunk/src/libs/openssl-3.0.3/providers/Makefile.kmk
r94320 r95676 75 75 endif 76 76 77 78 ifdef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 79 # 80 # The build program libproviders version. 81 # 82 LIBRARIES += VBoxBldProg-libproviders 83 VBoxBldProg-libproviders = For bldRTSignTool 84 VBoxBldProg-libproviders_EXTENDS = VBox-libproviders 85 VBoxBldProg-libproviders_TEMPLATE = VBoxLibCryptoBldProg 86 VBoxBldProg-libproviders_SOURCES = \ 87 $(filter %.c,$(VBox-libproviders_SOURCES)) \ 88 $(foreach sublib,$(VBOX_CRYPTO_PROVIDERS_SUBLIBS), $(VBoxBldProg-$(sublib)_1_TARGET)) 89 90 define def_VBoxBldProg_libproviders_inherit 91 LIBRARIES += VBoxBldProg-$(sublib) 92 VBoxBldProg-$(sublib) = bldRTSignTool version of $(sublib) 93 VBoxBldProg-$(sublib)_EXTENDS = $(sublib) 94 VBoxBldProg-$(sublib)_EXTENDS_BY = appending 95 VBoxBldProg-$(sublib)_TEMPLATE = VBoxSubLibCryptoBldProg 96 VBoxBldProg-$(sublib)_DEFPATH = $($(sublib)_DEFPATH) 97 ## @todo kBuild: DEFPATH isn't inherited! FIXME! 98 endef 99 $(foreach sublib,$(VBOX_CRYPTO_PROVIDERS_SUBLIBS), $(eval $(def_VBoxBldProg_libproviders_inherit))) 100 101 endif # VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 102 103 77 104 include $(FILE_KBUILD_SUB_FOOTER) 78 105 -
trunk/src/libs/openssl-3.0.3/ssl/Makefile.kmk
r94320 r95676 91 91 endif 92 92 93 94 ifdef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 95 # 96 # The build program version. 97 # 98 LIBRARIES += VBoxBldProg-libssl 99 VBoxBldProg-libssl_EXTENDS = VBox-libssl 100 VBoxBldProg-libssl_TEMPLATE = VBoxLibCryptoBldProg 101 endif # VBOX_WITH_BLD_RTSIGNTOOL_SIGNING 102 93 103 include $(FILE_KBUILD_SUB_FOOTER) 94 104
Note:
See TracChangeset
for help on using the changeset viewer.