nsd/ssl: Fix Resolve/ResolveEx and stub GetConnectionCount (#2208)

This commit is contained in:
Ac_K 2021-04-14 14:47:19 +02:00 committed by GitHub
parent 6cb22c9d38
commit 9575a7638a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 5 deletions

View file

@ -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;
}