feat(http): implement sceHttpCreateRequest2, sceHttpsEnableOption, sceHttpsLoadCert and sceHttpGetLastErrno #555
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/555"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Phi1ow on 2026-10-04T20:05:18Z.
What
Four more
libSceHttpexports, following the library's existing "no network emulated" model(created objects get handles; anything that would touch the network fails with the network
error):
sceHttpCreateRequest2(connId, method, path, contentLength)— returns a new handle, likethe existing
sceHttpCreateRequestWithURL2.sceHttpsEnableOption(id, flags)— returns0, the counterpart of the existingsceHttpsDisableOption.sceHttpsLoadCert(httpCtxId, num, caList, cert, key)— returns0; certificates areaccepted and ignored, as no TLS handshake is performed.
sceHttpGetLastErrno(reqId, errNum)— no request reaches the network and no per-requesterrno is tracked, so it reports
0; a null output pointer returnsERROR_INVALID_VALUE,like the other getters in this file (
sceHttpCreateEpoll).Signatures follow the public OpenOrbis SDK headers (
include/orbis/Http.h).Tested
core/libs/tests/GuestHttp.cpp(the existingguest_httptest) is extended with assertionsfor the four functions: a request handle is positive, the two no-ops return
0,sceHttpGetLastErrnowrites0and rejects a null pointer. The new assertions fail withoutthe change (the four symbols are undefined) and pass with it.
Built with MinGW-w64 GCC 15.2.0 (the CI toolchain) on Windows 11;
ctest -R guest_httppasses. Without the four implementations the test does not link (the symbols are undefined).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T21:19:40Z.
Thanks. All four names match their NIDs, and they fit the library's no-network model on main:
sceHttpCreateRequest2hands out a handle likesceHttpCreateRequestWithURL2,sceHttpsEnableOptionmirrorssceHttpsDisableOption, and ignoring the certificates is fine because no request ever connects (sceHttpSendRequestreturnsERROR_NETWORK).For the maintainer: #407 (and #545, which builds on it) exports the same two NIDs as throwing stubs,
sceHttpUnknown02(0onIrKx9NIE, which issceHttpGetLastErrno) andsceHttpUnknown04(rGNm+FjIXKk, which issceHttpCreateRequest2). The two PRs also conflict in libSceHttp/Export.cpp. Since this PR has the real names, those two stubs should be dropped from #407 when one of them is rebased. Nothing to change here for that.Ready to merge from my side once CI has run (it still needs approval).
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T21:20:47Z.
Progress report (
d7f0c49→be59a9e)📈 System libraries: 77.38% (+0.03%, +4 implemented functions)
✅ 4 implemented
sceHttpCreateRequest2sceHttpGetLastErrnosceHttpsEnableOptionsceHttpsLoadCert