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

◆ AuthSupported()

bool System.Net.Mail.SmtpConnection.AuthSupported ( ISmtpAuthenticationModule module)
inlinepackage

Definition at line 854 of file SmtpConnection.cs.

855 {
856 if (module is SmtpLoginAuthenticationModule)
857 {
858 if ((_supportedAuth & SupportedAuth.Login) > SupportedAuth.None)
859 {
860 return true;
861 }
862 }
863 else if (module is SmtpNegotiateAuthenticationModule)
864 {
865 if ((_supportedAuth & SupportedAuth.GSSAPI) > SupportedAuth.None)
866 {
867 _sawNegotiate = true;
868 return true;
869 }
870 }
871 else if (module is SmtpNtlmAuthenticationModule && !_sawNegotiate && (_supportedAuth & SupportedAuth.NTLM) > SupportedAuth.None)
872 {
873 return true;
874 }
875 return false;
876 }

References System.Net.Mail.SmtpConnection._sawNegotiate, and System.Net.Mail.SmtpConnection._supportedAuth.

Referenced by System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.Authenticate(), and System.Net.Mail.SmtpConnection.GetConnection().