mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-04 20:47:56 +01:00
4ef689c67d
* Stubbed ImportServerPki * thought it might be nice to name this variable properly * i really need to name variables better * Change Var Co-authored-by: Thog <thog@protonmail.com> * Change .ReadBytes(5) to IPC send buffer Co-authored-by: Thog <thog@protonmail.com> * Add description comment Co-authored-by: Thog <thog@protonmail.com> * fix build issue * Resolve final suggestion Co-authored-by: Thog <thog@protonmail.com> * uhh * it should work now shut up * aligned variables just look so much nicer :) * better variable alignment * aligned Co-authored-by: Thog <thog@protonmail.com>
28 lines
943 B
C#
28 lines
943 B
C#
using Ryujinx.Common.Logging;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
|
{
|
|
class ISslContext : IpcService
|
|
{
|
|
public ISslContext(ServiceCtx context) { }
|
|
|
|
[Command(4)]
|
|
// ImportServerPki(nn::ssl::sf::CertificateFormat certificateFormat, buffer<bytes, 5> certificate) -> u64 certificateId
|
|
public ResultCode ImportServerPki(ServiceCtx context)
|
|
{
|
|
int certificateFormat = context.RequestData.ReadInt32();
|
|
long certificateDataPosition = context.Request.SendBuff[0].Position;
|
|
long certificateDataSize = context.Request.SendBuff[0].Size;
|
|
ulong certificateId = 1;
|
|
|
|
context.ResponseData.Write(certificateId);
|
|
|
|
Logger.PrintStub(LogClass.ServiceSsl, new { certificateFormat, certificateDataPosition, certificateDataSize });
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
}
|
|
}
|