VirtualBox

Changeset 57624 in vbox


Ignore:
Timestamp:
Sep 4, 2015 11:40:41 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102501
Message:

IPRT,UINetworkReply: Fixes, logging.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp

    r57616 r57624  
    583583        if (RTErrInfoIsSet(&StaticErrInfo.Core))
    584584            LogRel(("refreshCertificates/#1: %s\n", StaticErrInfo.Core.pszMsg));
     585        else if (rc == VERR_NOT_FOUND)
     586            LogRel(("refreshCertificates/#1: No trusted SSL certs found on the system, will try download...\n"));
    585587        else
    586588            AssertLogRelRC(rc);
    587 
    588         if (RT_SUCCESS(rc))
     589        if (RT_SUCCESS(rc) || rc == VERR_NOT_FOUND)
    589590        {
    590591            /*
     
    643644                rc = RTCrStoreCertExportAsPem(hNewStore, 0 /*fFlags*/, pszCaCertFile);
    644645                if (RT_SUCCESS(rc))
     646                {
    645647                    memcpy(pafOldFoundCerts, afNewFoundCerts, sizeof(afNewFoundCerts));
     648                    LogRel(("refreshCertificates/#3: Found %u/%u SSL certs we/you trust (previously %u/%u).\n",
     649                            countCertsFound(afNewFoundCerts), RTCrStoreCertCount(hNewStore),
     650                            countCertsFound(pafOldFoundCerts), RTCrStoreCertCount(hOldStore) ));
     651                }
    646652                else
     653                {
    647654                    RT_ZERO(pafOldFoundCerts);
     655                    LogRel(("refreshCertificates/#3: RTCrStoreCertExportAsPem unexpectedly failed with %Rrc\n", rc));
     656                }
    648657            }
     658            else
     659                LogRel(("refreshCertificates/#3: Sticking with the old file, missing essential certs.\n"));
    649660        }
    650661        RTCrStoreRelease(hNewStore);
  • trunk/src/VBox/Runtime/common/misc/http.cpp

    r57616 r57624  
    434434     * Ditto for the system store.
    435435     */
    436     int rcSystem = RTCrStoreCreateSnapshotById(&hSrcStore, RTCRSTOREID_USER_TRUSTED_CAS_AND_CERTIFICATES, pErrInfo);
     436    int rcSystem = RTCrStoreCreateSnapshotById(&hSrcStore, RTCRSTOREID_SYSTEM_TRUSTED_CAS_AND_CERTIFICATES, pErrInfo);
    437437    if (RT_SUCCESS(rcSystem))
    438438    {
     
    457457        return rcSystem;
    458458    if (RT_FAILURE(rcUser))
    459         return rcSystem;
     459        return rcUser;
    460460    return VERR_NOT_FOUND;
    461461}
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