From fea02b8dca18c0a1af0afb82e046383775d53cd5 Mon Sep 17 00:00:00 2001 From: Matthew Parlane Date: Mon, 27 Feb 2012 23:17:06 +1300 Subject: [PATCH] Add SSL debug, everyone needs it! --- Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp index 79fdd4e08e..569b65725d 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_net_ssl.cpp @@ -354,6 +354,9 @@ u32 CWII_IPC_HLE_Device_net_ssl::ExecuteCommandV(u32 _Parameter, SIOCtlVBuffer C SSL* ssl = sslfds[sslID]; returnValue = SSL_write(ssl, Memory::GetPointer(_BufferOut2), BufferOutSize2); + + File::IOFile("ssl_write.bin", "ab").WriteBytes(Memory::GetPointer(_BufferOut2), BufferOutSize2); + if (returnValue == -1) returnValue = -SSL_get_error(ssl, returnValue); Memory::Write_U32(returnValue, _BufferIn); @@ -380,6 +383,8 @@ u32 CWII_IPC_HLE_Device_net_ssl::ExecuteCommandV(u32 _Parameter, SIOCtlVBuffer C { returnValue = -SSL_get_error(ssl, returnValue); INFO_LOG(WII_IPC_NET, "IOCTLV_NET_SSL_READ errorVal= %d", returnValue); + }else{ + File::IOFile("ssl_read.bin", "ab").WriteBytes(Memory::GetPointer(_BufferIn2), returnValue); } // According to OpenSSL docs, all TLS calls (including reads) can cause