VirtualBox

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


Ignore:
Timestamp:
Jul 13, 2022 10:55:21 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152274
Message:

RTSignTool: Use new setters. Corrected Ms-SpcOpusInfo. [build fix] bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r95631 r95632  
    972972}
    973973
    974 static PRTCRPKCS7ATTRIBUTE SignToolPkcs7_AuthAttribAppend(PRTCRPKCS7ATTRIBUTES pAuthAttribs, const char *pszAttrId)
    975 {
    976     int32_t iPos = RTCrPkcs7Attributes_Append(pAuthAttribs);
    977     if (iPos >= 0)
    978     {
    979         /* Create the attrib and its sub-set of timestamps. */
    980         PRTCRPKCS7ATTRIBUTE pAttr = pAuthAttribs->papItems[iPos];
    981         int rc = RTAsn1ObjId_InitFromString(&pAttr->Type, pszAttrId, pAttr->Allocation.pAllocator);
    982         if (RT_SUCCESS(rc))
    983             return pAttr;
    984         RTMsgError("RTAsn1ObjId_InitFromString/%s failed: %Rrc", pszAttrId, rc);
    985     }
    986     else
    987         RTMsgError("RTCrPkcs7Attributes_Append failed: %Rrc", iPos);
    988 
    989     return NULL;
    990 }
    991 
    992974
    993975static RTEXITCODE SignToolPkcs7_AuthAttribsAddSigningTime(PRTCRPKCS7ATTRIBUTES pAuthAttribs, RTTIMESPEC SigningTime)
Note: See TracChangeset for help on using the changeset viewer.

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