Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SmtpNtlmAuthenticationModule.cs
Go to the documentation of this file.
3
4namespace System.Net.Mail;
5
7{
9
10 public string AuthenticationType => "ntlm";
11
13 {
14 }
15
17 {
18 try
19 {
21 {
23 {
24 if (credential == null)
25 {
26 return null;
27 }
28 value = (_sessions[sessionCookie] = new System.Net.NTAuthentication(isServer: false, "Ntlm", credential, spn, System.Net.ContextFlagsPal.Connection, channelBindingToken));
29 }
30 string outgoingBlob = value.GetOutgoingBlob(challenge);
31 if (!value.IsCompleted)
32 {
33 return new Authorization(outgoingBlob, finished: false);
34 }
36 return new Authorization(outgoingBlob, finished: true);
37 }
38 }
40 {
41 return null;
42 }
43 }
44
45 public void CloseContext(object sessionCookie)
46 {
47 }
48}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
readonly Dictionary< object, System.Net.NTAuthentication > _sessions
Authorization Authenticate(string challenge, NetworkCredential credential, object sessionCookie, string spn, ChannelBinding channelBindingToken)