Stub ImportServerPki

This commit is contained in:
Dima 2022-11-21 16:42:29 +03:00 committed by Billy Laws
parent 41cf4bb12d
commit 4ab8699cd4
2 changed files with 21 additions and 0 deletions

View File

@ -5,4 +5,16 @@
namespace skyline::service::ssl {
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 {};
}
}

View File

@ -13,5 +13,14 @@ namespace skyline::service::ssl {
class ISslContext : public BaseService {
public:
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)
)
};
}