VirtualBox

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


Ignore:
Timestamp:
Aug 28, 2015 1:31:29 AM (9 years ago)
Author:
vboxsync
Message:

IPRT: Started on accessing system certificate stores to get SSL roots for cURL.

File:
1 edited

Legend:

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

    r56978 r57572  
    496496        {
    497497            case 'r': case 'a':
    498                 rc = RTCrStoreCertAddFromFile(ch == 'r' ? State.hRootStore : State.hAdditionalStore,  0, ValueUnion.psz,
    499                                               RTErrInfoInitStatic(&StaticErrInfo));
     498                rc = RTCrStoreCertAddFromFile(ch == 'r' ? State.hRootStore : State.hAdditionalStore,
     499                                              RTCRCERTCTX_F_ADD_IF_NOT_FOUND | RTCRCERTCTX_F_ADD_CONTINUE_ON_ERROR,
     500                                              ValueUnion.psz, RTErrInfoInitStatic(&StaticErrInfo));
    500501                if (RT_FAILURE(rc))
    501502                    return RTMsgErrorExit(RTEXITCODE_FAILURE, "Error loading certificate '%s': %Rrc - %s",
    502503                                          ValueUnion.psz, rc, StaticErrInfo.szMsg);
     504                if (RTErrInfoIsSet(&StaticErrInfo.Core))
     505                    RTMsgWarning("Warnings loading certificate '%s': %s", ValueUnion.psz, StaticErrInfo.szMsg);
    503506                break;
    504507
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