Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions core/libs/prx/libSceSsl/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
12 changes: 12 additions & 0 deletions core/libs/tests/GuestSsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
1 change: 1 addition & 0 deletions docs/dev/TechnicalDebt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading