VirtualBox

Changeset 78066 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 9, 2019 4:02:32 PM (6 years ago)
Author:
vboxsync
Message:

IPRT,GUI: Workaround for certificate downloads getting redirected to https.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/http.h

    r76585 r78066  
    319319
    320320/**
     321 * Gets the follow redirect setting.
     322 *
     323 * @returns cMaxRedirects value, 0 means not to follow.
     324 * @param   hHttp           The HTTP client handle.
     325 */
     326RTR3DECL(uint32_t) RTHttpGetFollowRedirects(RTHTTP hHttp);
     327
     328/**
    321329 * Set custom raw headers.
    322330 *
     
    468476 */
    469477RTR3DECL(int) RTHttpGatherCaCertsInFile(const char *pszCaFile, uint32_t fFlags, PRTERRINFO pErrInfo);
     478
     479/**
     480 * Set whether to verify the peer's SSL certificate.
     481 *
     482 * The default is to verify it.  It can however sometimes be useful or even
     483 * necessary to skip this.
     484 *
     485 * @returns iprt status code.
     486 *
     487 * @param   hHttp           The HTTP client handle.
     488 * @param   fVerify         Verify the certificate if @a true.
     489 */
     490RTR3DECL(int) RTHttpSetVerifyPeer(RTHTTP hHttp, bool fVerify);
     491
     492/**
     493 * Get the state of the peer's SSL certificate setting.
     494 *
     495 * @returns  true if we verify the SSL certificate, false if not.
     496 * @param   hHttp           The HTTP client handle.
     497 */
     498RTR3DECL(bool) RTHttpGetVerifyPeer(RTHTTP hHttp);
    470499
    471500/**
  • trunk/include/iprt/mangling.h

    r78048 r78066  
    11311131# define RTHeapSimpleSize                               RT_MANGLER(RTHeapSimpleSize)
    11321132# define RTHttpGetFile                                  RT_MANGLER(RTHttpGetFile)
     1133# define RTHttpGetFollowRedirects                       RT_MANGLER(RTHttpGetFollowRedirects)
    11331134# define RTHttpSetFollowRedirects                       RT_MANGLER(RTHttpSetFollowRedirects)
     1135# define RTHttpGetVerifyPeer                            RT_MANGLER(RTHttpGetVerifyPeer)
     1136# define RTHttpSetVerifyPeer                            RT_MANGLER(RTHttpSetVerifyPeer)
    11341137# define RTHttpUseSystemProxySettings                   RT_MANGLER(RTHttpUseSystemProxySettings)
    11351138# define RTIniFileCreateFromVfsFile                     RT_MANGLER(RTIniFileCreateFromVfsFile)
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