Lines Matching refs:hHttp
42 static int extractPCA3G5(RTHTTP hHttp, PRTSTREAM CAFile, uint8_t *pu8Buf, size_t cbBuf)
66 int rc = RTHttpCertDigest(hHttp, pszBuf, cbBuf,
106 static int extractPCA3(RTHTTP hHttp, PRTSTREAM CAFile, uint8_t *pu8Buf, size_t cbBuf)
130 int rc = RTHttpCertDigest(hHttp, pszBuf, cbBuf,
174 static void checkError(RTHTTP hHttp, int rc, const char *pszFile)
179 int rc2 = RTHttpGetRedirLocation(hHttp, &pszRedirLocation);
213 RTHTTP hHttp;
217 int rc = RTHttpCreate(&hHttp);
236 rc = RTHttpGetText(hHttp,
240 rc = extractPCA3G5(hHttp, CAFile, (uint8_t*)pszBuf, strlen(pszBuf));
242 checkError(hHttp, rc, "PCA-3G5.pem");
253 rc = RTHttpGetText(hHttp,
257 rc = extractPCA3(hHttp, CAFile, (uint8_t*)pszBuf, strlen(pszBuf));
259 checkError(hHttp, rc, "PCA-3.pem");
272 rc = RTHttpGetBinary(hHttp,
283 rc = extractPCA3G5(hHttp, CAFile, (uint8_t*)pvDecomp, cbDecomp);
289 rc = extractPCA3(hHttp, CAFile, (uint8_t*)pvDecomp, cbDecomp);
295 checkError(hHttp, rc, "roots.zip");
312 rc = RTHttpSetCAFile(hHttp, CAFILE_NAME);
318 rc = RTHttpGetText(hHttp,
339 RTHttpDestroy(hHttp);