Skip to content

Commit 96bcb0b

Browse files
committed
Use constances for package names.
1 parent 8b61c50 commit 96bcb0b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

NtApiDotNet/Win32/Rpc/Transport/RpcTransportSecurity.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ private string GetAuthPackageName()
7878
switch (AuthenticationType)
7979
{
8080
case RpcAuthenticationType.Negotiate:
81-
return "Negotiate";
81+
return AuthenticationPackage.NEGOSSP_NAME;
8282
case RpcAuthenticationType.Kerberos:
83-
return "Kerberos";
83+
return AuthenticationPackage.KERBEROS_NAME;
8484
case RpcAuthenticationType.WinNT:
85-
return "NTLM";
85+
return AuthenticationPackage.NTLM_NAME;
8686
case RpcAuthenticationType.None:
8787
throw new ArgumentException("Must specify an authentication type to authenticate an RPC connection.");
8888
default:

0 commit comments

Comments
 (0)