2020-06-06 11:04:30 +00:00
|
|
|
using Ryujinx.Common.Logging;
|
|
|
|
using System;
|
|
|
|
|
2019-09-19 00:45:11 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
2018-10-06 22:16:42 +00:00
|
|
|
{
|
|
|
|
class ISslContext : IpcService
|
|
|
|
{
|
2020-06-06 11:04:30 +00:00
|
|
|
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);
|
|
|
|
|
2020-08-03 23:32:53 +00:00
|
|
|
Logger.Stub?.PrintStub(LogClass.ServiceSsl, new { certificateFormat, certificateDataPosition, certificateDataSize });
|
2020-06-06 11:04:30 +00:00
|
|
|
|
|
|
|
return ResultCode.Success;
|
|
|
|
}
|
|
|
|
|
2018-10-06 22:16:42 +00:00
|
|
|
}
|
2020-06-06 11:04:30 +00:00
|
|
|
}
|