the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 26 lines 771 B view raw
1#pragma once 2 3#include <libhttp.h> 4 5class SonyHttp_Orbis 6{ 7 static SceInt32 sslCallback(int libsslCtxId,unsigned int verifyErr,SceSslCert * const sslCert[],int certNum,void *userArg); 8 static bool http_get(const char *targetUrl, void** ppOutData, int* pDataSize); 9 static bool http_get_close(bool bOK, SceInt32 tmplId, SceInt32 connId, SceInt32 reqId); 10 11 static void printSslError(SceInt32 sslErr, SceUInt32 sslErrDetail); 12 static void printSslCertInfo(int libsslCtxId,SceSslCert *sslCert); 13 14 static int libnetMemId; 15 static int libsslCtxId; 16 static int libhttpCtxId; 17 18 static bool bInitialised; 19 20public: 21 bool init(); 22 void shutdown(); 23 bool getDataFromURL(const char* szURL, void** ppOutData, int* pDataSize); 24 25 static int getHTTPContextID() { return libhttpCtxId; } 26};