Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Equals() [2/3]

bool System.Net.Security.SslSessionsCache.SslCredKey.Equals ( SslCredKey other)
inline

Definition at line 61 of file SslSessionsCache.cs.

62 {
63 byte[] thumbPrint = _thumbPrint;
64 byte[] thumbPrint2 = other._thumbPrint;
65 if (thumbPrint.Length != thumbPrint2.Length)
66 {
67 return false;
68 }
69 if (_encryptionPolicy != other._encryptionPolicy)
70 {
71 return false;
72 }
73 if (_allowedProtocols != other._allowedProtocols)
74 {
75 return false;
76 }
77 if (_isServerMode != other._isServerMode)
78 {
79 return false;
80 }
81 for (int i = 0; i < thumbPrint.Length; i++)
82 {
83 if (thumbPrint[i] != thumbPrint2[i])
84 {
85 return false;
86 }
87 }
88 return true;
89 }

References System.Net.Security.SslSessionsCache.SslCredKey._allowedProtocols, System.Net.Security.SslSessionsCache.SslCredKey._encryptionPolicy, System.Net.Security.SslSessionsCache.SslCredKey._isServerMode, System.Net.Security.SslSessionsCache.SslCredKey._thumbPrint, and System.other.