mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-02 03:12:25 -07:00
nsd/ssl: Fix Resolve/ResolveEx and stub GetConnectionCount (#2208)
This commit is contained in:
@@ -78,7 +78,12 @@ namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
||||
long inputDataPosition = context.Request.SendBuff[0].Position;
|
||||
long inputDataSize = context.Request.SendBuff[0].Size;
|
||||
|
||||
uint transferredSize = 0;
|
||||
byte[] data = new byte[inputDataSize];
|
||||
|
||||
context.Memory.Read((ulong)inputDataPosition, data);
|
||||
|
||||
// NOTE: Tell the guest everything is transferred.
|
||||
uint transferredSize = (uint)inputDataSize;
|
||||
|
||||
context.ResponseData.Write(transferredSize);
|
||||
|
||||
|
@@ -6,6 +6,8 @@ namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
||||
{
|
||||
class ISslContext : IpcService
|
||||
{
|
||||
private uint _connectionCount;
|
||||
|
||||
private ulong _serverCertificateId;
|
||||
private ulong _clientCertificateId;
|
||||
|
||||
@@ -17,6 +19,19 @@ namespace Ryujinx.HLE.HOS.Services.Ssl.SslService
|
||||
{
|
||||
MakeObject(context, new ISslConnection());
|
||||
|
||||
_connectionCount++;
|
||||
|
||||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(3)]
|
||||
// GetConnectionCount() -> u32 count
|
||||
public ResultCode GetConnectionCount(ServiceCtx context)
|
||||
{
|
||||
context.ResponseData.Write(_connectionCount);
|
||||
|
||||
Logger.Stub?.PrintStub(LogClass.ServiceSsl, new { _connectionCount });
|
||||
|
||||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user