VirtualBox

Changeset 57577 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Aug 28, 2015 6:57:36 PM (9 years ago)
Author:
vboxsync
Message:

IPRT,QtGui: Redid the certificate download code in the GUI and reduced the number of unnecessary wrapper methods. Removed RTHttpCertDigest, adding RTHttpFreeResponse and RTHttpFreeResponseText. Also added RTCrPemParseContent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTHttp.cpp

    r57358 r57577  
    2929*   Header Files                                                                                                                 *
    3030*********************************************************************************************************************************/
     31#include <iprt/http.h>
     32
    3133#include <iprt/err.h>
    32 #include <iprt/http.h>
     34#include <iprt/file.h>
     35#include <iprt/initterm.h>
    3336#include <iprt/mem.h>
    34 #include <iprt/file.h>
     37#include <iprt/message.h>
    3538#include <iprt/stream.h>
    3639#include <iprt/string.h>
    37 #include <iprt/initterm.h>
    3840#include <iprt/vfslowlevel.h>
    3941#include <iprt/zip.h>
     
    4143#define CAFILE_NAME "tstHttp-tempcafile.crt"
    4244
     45#if 0
    4346static int extractPCA3G5(RTHTTP hHttp, PRTSTREAM CAFile, uint8_t *pu8Buf, size_t cbBuf)
    4447{
     
    188191        RTPrintf("Error %Rrc trying to fetch '%s'\n", rc, pszFile);
    189192}
     193#endif
    190194
    191195int main(int argc, char **argv)
     
    200204        return 1;
    201205    }
     206
     207#if 0 /* rewrite to modified API and use test.h! */
    202208
    203209    for (int i = 1; i < argc; i++)
     
    343349
    344350    return !!cErrors;
     351#else
     352    RTMsgError("Needs rewriting. You're better off debugging the actual code in the GUI!\n");
     353    return RTEXITCODE_SKIPPED;
     354#endif
    345355}
     356
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