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

◆ GetHashCode()

override int System.Net.Security.SslSessionsCache.SslCredKey.GetHashCode ( )
inline

Definition at line 28 of file SslSessionsCache.cs.

29 {
30 int num = 0;
31 if (_thumbPrint.Length != 0)
32 {
33 num ^= _thumbPrint[0];
34 if (1 < _thumbPrint.Length)
35 {
36 num ^= _thumbPrint[1] << 8;
37 }
38 if (2 < _thumbPrint.Length)
39 {
40 num ^= _thumbPrint[2] << 16;
41 }
42 if (3 < _thumbPrint.Length)
43 {
44 num ^= _thumbPrint[3] << 24;
45 }
46 }
47 num ^= _allowedProtocols;
48 num ^= (int)_encryptionPolicy;
49 return num ^ (_isServerMode ? 65536 : 131072);
50 }

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