Skip to content

Commit 716e8ff

Browse files
committed
Added all tokens to parser.
1 parent a3001a2 commit 716e8ff

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

NtApiDotNet/Win32/Security/Authentication/Kerberos/KerberosAuthenticationToken.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ internal static bool TryParse(byte[] data, int token_count, bool client, out Ker
8383
return true;
8484
if (KerberosErrorAuthenticationToken.TryParse(data, values, out token))
8585
return true;
86-
return false;
86+
if (KerberosTGTRequestAuthenticationToken.TryParse(data, values, out token))
87+
return true;
88+
if (KerberosTGTReplyAuthenticationToken.TryParse(data, values, out token))
89+
return true;
90+
token = new KerberosAuthenticationToken(data, values, KerberosMessageType.UNKNOWN);
91+
return true;
8792
}
8893
else
8994
{

0 commit comments

Comments
 (0)