Files
AnyPS5/docs/dev/debt/changes/feat-httpcache-cache-info.md

2.9 KiB

libSceHttpCache

change [libSceHttpCache additional exports]

  • libSceHttpCache additional exports - this name/NID pair is present in the inspected export inventory. Firmware 13.42 gives sceHttpCacheEnableCacheInfo one bool (reading, disassembly only); it still throws through NotImplemented_nid_no_patch, because its result comes from 0x2e260, which was not read, and the call talks to a system service over IPMI (follow-up). No runtime functionality is implemented. On a PS5 (firmware 11.60, payload process; a title process may differ) dlsym on the handle of libSceHttpCache.sprx resolved sceHttpCacheEnableCacheInfo under the bare name (one run); nothing was called, so its parameters and result stay unverified.

remove | sceHttpCacheUnregisterCacheInfoUrl | 3JQc1T-fvmc |

change [sceHttpCacheClearCacheInfo and sceHttpCacheRemoveTag]

  • sceHttpCacheRemoveTag: the type of its last parameter is unknown, so it is declared as an untyped pointer; firmware 13.42 reads a string pointer at its offset 8, so it may be a request record (reading). The pointer types of sceHttpCacheClearAllUserTags (a list of at most 20 entries, taken as user ids) and sceHttpCacheRegisterCacheInfoUrl are inferred from the checks. On a PS5 (firmware 11.60, payload process; a title process may differ) dlsym on the handle of libSceHttpCache.sprx resolved sceHttpCacheRemoveTag and sceHttpCacheClearAllUserTags under the bare name (one run); nothing was called, so their signatures stay unverified.

add Functional

  • sceHttpCacheClearCacheInfo, sceHttpCacheUnregisterCacheInfoUrl and sceHttpCacheRemoveTag (libSceHttpCache) - ClearCacheInfo and a non-null UnregisterCacheInfoUrl return 0x817a0014 (ErrorCacheInfoDisabled, a name chosen here), firmware 13.42's answer when no cache-info object exists. That holds only while EnableCacheInfo, which creates the object, throws; implementing it means modelling the object here. RemoveTag throws through NotImplemented_nid_no_patch past its checks, where its worker returns an IPMI system service's reply (part 3). The checks follow the reading (disassembly only): a null URL returns 0x817a0012, and an unknown cache or a null tag or last argument 0x817a0011. Closes when: EnableCacheInfo's 0x2e260 and the service are read.