mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 13:05:29 +03:00
Stub ImportServerPki
This commit is contained in:
parent
41cf4bb12d
commit
4ab8699cd4
@ -5,4 +5,16 @@
|
|||||||
|
|
||||||
namespace skyline::service::ssl {
|
namespace skyline::service::ssl {
|
||||||
ISslContext::ISslContext(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
|
ISslContext::ISslContext(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
|
||||||
|
|
||||||
|
Result ISslContext::ImportServerPki(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
enum class CertificateFormat : u32 {
|
||||||
|
Pem = 1,
|
||||||
|
Der = 2,
|
||||||
|
} certificateFormat{request.Pop<CertificateFormat>()};
|
||||||
|
|
||||||
|
Logger::Debug("Certificate format: {}", certificateFormat);
|
||||||
|
|
||||||
|
response.Push<u64>(0);
|
||||||
|
return {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,5 +13,14 @@ namespace skyline::service::ssl {
|
|||||||
class ISslContext : public BaseService {
|
class ISslContext : public BaseService {
|
||||||
public:
|
public:
|
||||||
ISslContext(const DeviceState &state, ServiceManager &manager);
|
ISslContext(const DeviceState &state, ServiceManager &manager);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @url https://switchbrew.org/wiki/SSL_services#ImportServerPki
|
||||||
|
*/
|
||||||
|
Result ImportServerPki(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
SERVICE_DECL(
|
||||||
|
SFUNC(0x4, ISslContext, ImportServerPki)
|
||||||
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user