Skip to content

Commit a5df54c

Browse files
committed
[unitytls] FinishHandshake no longer passes null for errorState when retrieving information about the connection from tlsctx.
Passing null for the errorstate is no longer supported in an upcoming unitytls version.
1 parent 9889bec commit a5df54c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mcs/class/System/Mono.UnityTls/UnityTlsContext.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ public override bool ProcessHandshake ()
257257
public override void FinishHandshake ()
258258
{
259259
// Query some data. Ignore errors on the way since failure is not crucial.
260-
var cipherSuite = UnityTls.NativeInterface.unitytls_tlsctx_get_ciphersuite(m_TlsContext, null);
261-
var protocolVersion = UnityTls.NativeInterface.unitytls_tlsctx_get_protocol(m_TlsContext, null);
260+
var errorState = UnityTls.NativeInterface.unitytls_errorstate_create ();
261+
var cipherSuite = UnityTls.NativeInterface.unitytls_tlsctx_get_ciphersuite(m_TlsContext, &errorState);
262+
var protocolVersion = UnityTls.NativeInterface.unitytls_tlsctx_get_protocol(m_TlsContext, &errorState);
262263

263264
m_Connectioninfo = new MonoTlsConnectionInfo () {
264265
CipherSuiteCode = (CipherSuiteCode)cipherSuite,

0 commit comments

Comments
 (0)