VirtualBox

Changeset 95676 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Jul 17, 2022 3:01:19 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152325
Message:

/Config.kmk,openssl,RTSignTool: Build bldRTSignTool with signing capability on windows. bugref:8691

Location:
trunk/src/VBox/Runtime/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/Makefile.kmk

    r95675 r95676  
    7474  # RTSignTool - Signing utility - build version.  Signed on windows so we can get the certificate from it.
    7575  BLDPROGS += bldRTSignTool
    76   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
     76  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
    8181  bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
    8282  if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)
    8383   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
    84114  endif
    85115 endif
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r95675 r95676  
    15621562}
    15631563
    1564 #ifndef IPRT_IN_BUILD_TOOL
     1564#ifndef IPRT_SIGNTOOL_NO_SIGNING
    15651565
    15661566static PRTCRPKCS7ATTRIBUTE SignToolPkcs7_AuthAttribAppend(PRTCRPKCS7ATTRIBUTES pAuthAttribs)
     
    26282628}
    26292629
    2630 #endif /* !IPRT_IN_BUILD_TOOL */
     2630#endif /* !IPRT_SIGNTOOL_NO_SIGNING */
    26312631
    26322632
     
    30983098*   Option handlers shared by 'sign-exe', 'sign-cat', 'add-timestamp-exe-signature' and others.                                  *
    30993099*********************************************************************************************************************************/
    3100 #ifndef IPRT_IN_BUILD_TOOL
     3100#ifndef IPRT_SIGNTOOL_NO_SIGNING
    31013101
    31023102static RTEXITCODE HandleOptAddCert(PRTCRSTORE phStore, const char *pszFile)
     
    33373337}
    33383338
    3339 #endif /* !IPRT_IN_BUILD_TOOL */
     3339#endif /* !IPRT_SIGNTOOL_NO_SIGNING */
    33403340
    33413341
     
    33433343*   The 'add-timestamp-exe-signature' command.                                                                                   *
    33443344*********************************************************************************************************************************/
    3345 #ifndef IPRT_IN_BUILD_TOOL
     3345#ifndef IPRT_SIGNTOOL_NO_SIGNING
    33463346
    33473347static RTEXITCODE HelpAddTimestampExeSignature(PRTSTREAM pStrm, RTSIGNTOOLHELP enmLevel)
     
    34483448}
    34493449
    3450 #endif /*!IPRT_IN_BUILD_TOOL */
     3450#endif /*!IPRT_SIGNTOOL_NO_SIGNING */
    34513451
    34523452
     
    34543454*   The 'sign-exe' command.                                                                                   *
    34553455*********************************************************************************************************************************/
    3456 #ifndef IPRT_IN_BUILD_TOOL
     3456#ifndef IPRT_SIGNTOOL_NO_SIGNING
    34573457
    34583458static RTEXITCODE HelpSign(PRTSTREAM pStrm, RTSIGNTOOLHELP enmLevel)
     
    36283628}
    36293629
    3630 #endif /*!IPRT_IN_BUILD_TOOL */
     3630#endif /*!IPRT_SIGNTOOL_NO_SIGNING */
    36313631
    36323632
     
    52065206    { "add-nested-exe-signature",       HandleAddNestedExeSignature,        HelpAddNestedExeSignature },
    52075207    { "add-nested-cat-signature",       HandleAddNestedCatSignature,        HelpAddNestedCatSignature },
    5208 #ifndef IPRT_IN_BUILD_TOOL
     5208#ifndef IPRT_SIGNTOOL_NO_SIGNING
    52095209    { "add-timestamp-exe-signature",    HandleAddTimestampExeSignature,     HelpAddTimestampExeSignature },
    52105210    { "sign",                           HandleSign,                         HelpSign },
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette