Correctly return zero root CA certs

This commit is contained in:
Marcin Mikołajczyk 2025-07-11 19:05:12 +01:00
parent 3fd81da9f2
commit 1c73485ef9
3 changed files with 25 additions and 4 deletions

View File

@ -633,8 +633,17 @@ int PS4_SYSV_ABI sceSslFreeSslCertName() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceSslGetCaCerts() { struct OrbisSslCaCerts {
void* certs;
u64 num;
void* pool;
};
int PS4_SYSV_ABI sceSslGetCaCerts(int sslCtxId, OrbisSslCaCerts* certs) {
LOG_ERROR(Lib_Ssl, "(STUBBED) called"); LOG_ERROR(Lib_Ssl, "(STUBBED) called");
certs->certs = nullptr;
certs->num = 0;
certs->pool = nullptr;
return ORBIS_OK; return ORBIS_OK;
} }

View File

@ -11,6 +11,8 @@ class SymbolsResolver;
namespace Libraries::Ssl { namespace Libraries::Ssl {
struct OrbisSslCaCerts;
int PS4_SYSV_ABI CA_MGMT_allocCertDistinguishedName(); int PS4_SYSV_ABI CA_MGMT_allocCertDistinguishedName();
int PS4_SYSV_ABI CA_MGMT_certDistinguishedNameCompare(); int PS4_SYSV_ABI CA_MGMT_certDistinguishedNameCompare();
int PS4_SYSV_ABI CA_MGMT_convertKeyBlobToPKCS8Key(); int PS4_SYSV_ABI CA_MGMT_convertKeyBlobToPKCS8Key();
@ -136,7 +138,7 @@ int PS4_SYSV_ABI sceSslEnableOptionInternal();
int PS4_SYSV_ABI sceSslFreeCaCerts(); int PS4_SYSV_ABI sceSslFreeCaCerts();
int PS4_SYSV_ABI sceSslFreeCaList(); int PS4_SYSV_ABI sceSslFreeCaList();
int PS4_SYSV_ABI sceSslFreeSslCertName(); int PS4_SYSV_ABI sceSslFreeSslCertName();
int PS4_SYSV_ABI sceSslGetCaCerts(); int PS4_SYSV_ABI sceSslGetCaCerts(int sslCtxId, OrbisSslCaCerts* certs);
int PS4_SYSV_ABI sceSslGetCaList(); int PS4_SYSV_ABI sceSslGetCaList();
int PS4_SYSV_ABI sceSslGetIssuerName(); int PS4_SYSV_ABI sceSslGetIssuerName();
int PS4_SYSV_ABI sceSslGetMemoryPoolStats(); int PS4_SYSV_ABI sceSslGetMemoryPoolStats();

View File

@ -128,8 +128,18 @@ int PS4_SYSV_ABI sceSslGetAlpnSelected() {
return ORBIS_OK; return ORBIS_OK;
} }
int PS4_SYSV_ABI sceSslGetCaCerts() { struct OrbisSslCaCerts {
LOG_ERROR(Lib_Ssl2, "(STUBBED) called"); void* certs;
u64 num;
void* pool;
};
int PS4_SYSV_ABI sceSslGetCaCerts(int sslCtxId, OrbisSslCaCerts* certs) {
// check if it is same as libSceSsl
LOG_ERROR(Lib_Ssl2, "(DUMMY) called");
certs->certs = nullptr;
certs->num = 0;
certs->pool = nullptr;
return ORBIS_OK; return ORBIS_OK;
} }