VirtualBox

Changeset 74045 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 3, 2018 1:49:12 PM (6 years ago)
Author:
vboxsync
Message:

OCI: Call RTHttpUseTemporaryCaFile() on the http handle.

In the curl wrapper ensure that we do take it into account. This
makes it work on windows and macos, where openssl is not the default
crypto thing and CA certs need to be obtained elsewhere.

VBoxOCIRest needs to be reworked to avoid calling RTHttpReset() as
that nukes cacert and proxy info from the handle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r74019 r74045  
    32943294    RTHTTP_VALID_RETURN(pThis);
    32953295
     3296    /*
     3297     * XXX: Do this here for now as a stop-gap measure as
     3298     * RTHttpReset() resets this (and proxy settings).
     3299     */
     3300    if (pThis->pszCaFile)
     3301    {
     3302        rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_CAINFO, pThis->pszCaFile);
     3303        if (CURL_FAILURE(rcCurl))
     3304            return VERR_HTTP_CURL_ERROR;
     3305    }
     3306
    32963307    rcCurl = curl_easy_perform(pThis->pCurl);
    32973308    if (CURL_FAILURE(rcCurl))
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