mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
Correctly return zero root CA certs
This commit is contained in:
parent
3fd81da9f2
commit
1c73485ef9
@ -633,8 +633,17 @@ int PS4_SYSV_ABI sceSslFreeSslCertName() {
|
||||
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");
|
||||
certs->certs = nullptr;
|
||||
certs->num = 0;
|
||||
certs->pool = nullptr;
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,8 @@ class SymbolsResolver;
|
||||
|
||||
namespace Libraries::Ssl {
|
||||
|
||||
struct OrbisSslCaCerts;
|
||||
|
||||
int PS4_SYSV_ABI CA_MGMT_allocCertDistinguishedName();
|
||||
int PS4_SYSV_ABI CA_MGMT_certDistinguishedNameCompare();
|
||||
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 sceSslFreeCaList();
|
||||
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 sceSslGetIssuerName();
|
||||
int PS4_SYSV_ABI sceSslGetMemoryPoolStats();
|
||||
|
@ -128,8 +128,18 @@ int PS4_SYSV_ABI sceSslGetAlpnSelected() {
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
int PS4_SYSV_ABI sceSslGetCaCerts() {
|
||||
LOG_ERROR(Lib_Ssl2, "(STUBBED) called");
|
||||
struct OrbisSslCaCerts {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user