diff --git a/core/libs/prx/libSceSsl/Export.cpp b/core/libs/prx/libSceSsl/Export.cpp index 4b3e23a4e9b3..b364679d131c 100644 --- a/core/libs/prx/libSceSsl/Export.cpp +++ b/core/libs/prx/libSceSsl/Export.cpp @@ -130,32 +130,26 @@ int APS5_VABI sceSslGetMemoryPoolStats(int ssl_ctx_id, SslMemoryPoolStats* stats } int APS5_VABI sceSslFreeSslCertName(void) { - NotImplemented_nid_no_patch(__func__); return 0; } int APS5_VABI sceSslGetIssuerName(void) { - NotImplemented_nid_no_patch(__func__); return 0; } int APS5_VABI sceSslGetNameEntryCount(void) { - NotImplemented_nid_no_patch(__func__); return 0; } int APS5_VABI sceSslGetNameEntryInfo(void) { - NotImplemented_nid_no_patch(__func__); - return 0; + return ERROR_NOT_FOUND; } int APS5_VABI sceSslGetPem(void) { - NotImplemented_nid_no_patch(__func__); - return 0; + return ERROR_NOT_FOUND; } int APS5_VABI sceSslGetSubjectName(void) { - NotImplemented_nid_no_patch(__func__); return 0; } diff --git a/core/libs/tests/GuestSsl.cpp b/core/libs/tests/GuestSsl.cpp index a8bed92584e0..7c9f4724bcb3 100644 --- a/core/libs/tests/GuestSsl.cpp +++ b/core/libs/tests/GuestSsl.cpp @@ -12,6 +12,12 @@ int APS5_VABI sceSslFreeCaCerts(int, void*); int APS5_VABI sceSslGetCaList(int, void*); int APS5_VABI sceSslFreeCaList(int, void*); int APS5_VABI sceSslUnloadCert(int); +int APS5_VABI sceSslFreeSslCertName(void); +int APS5_VABI sceSslGetIssuerName(void); +int APS5_VABI sceSslGetNameEntryCount(void); +int APS5_VABI sceSslGetNameEntryInfo(void); +int APS5_VABI sceSslGetPem(void); +int APS5_VABI sceSslGetSubjectName(void); } struct SslMemoryPoolStats { @@ -95,4 +101,10 @@ int main() { Require(Throws([&] { sceSslGetCaList(context, &list); })); Require(Throws([&] { sceSslFreeCaList(context, &list); })); Require(Throws([&] { sceSslUnloadCert(context); })); + Require(sceSslFreeSslCertName() == 0); + Require(sceSslGetIssuerName() == 0); + Require(sceSslGetNameEntryCount() == 0); + Require(sceSslGetNameEntryInfo() == notFound); + Require(sceSslGetPem() == notFound); + Require(sceSslGetSubjectName() == 0); } diff --git a/docs/dev/TechnicalDebt.md b/docs/dev/TechnicalDebt.md index 148ce0621cd0..3f33a430308b 100644 --- a/docs/dev/TechnicalDebt.md +++ b/docs/dev/TechnicalDebt.md @@ -47,6 +47,7 @@ Throughout the project, every function at every stage either **does exactly what - [sceFontGlyphDefineAttribute](../../core/libs/prx/libSceFont/src/Render.cpp) (libSceFont) checks the glyph and ignores the attribute and its value, whose meaning is unknown. PPSA01325 sets attribute 0x11 to 0 on a glyph from `sceFontGenerateCharGlyph` that it deletes unused, and draws the character with `sceFontRenderCharGlyphImageHorizontal` - [sceAudioInInit](../../core/libs/prx/libSceAudioIn/Export.cpp) (libSceAudioIn) - returns 0 without library-wide setup, as `sceAudioOutInit` does; each `sceAudioInOpen` opens its own SDL capture device - [sceRazorCpuPushMarker](../../core/libs/prx/libSceRazorCpu/Export.cpp) (libSceRazorCpu) - signature (label, color, flags) from [SharpProspero](https://github.com/SvenGDK/SharpProspero), the same as sceRazorCpuPushMarkerStatic's except that the label is copied; it does nothing without a capture and returns 0 +- [libSceSsl](../../core/libs/prx/libSceSsl/Export.cpp) - no certificate bundle or network connection is maintained, so `sceSslGetNameEntryInfo` and `sceSslGetPem` report that no certificate is found (`0x8095F004`), `sceSslGetIssuerName` and `sceSslGetSubjectName` return a null name, `sceSslGetNameEntryCount` reports 0 entries, and `sceSslFreeSslCertName` returns success ### Unknown function info