SPNEGO: Added exception documentation

This commit is contained in:
Tal Aloni 2017-08-25 02:57:36 +03:00
parent 97a48adf4a
commit 59b4e46bc0
3 changed files with 3 additions and 0 deletions

View file

@ -22,6 +22,7 @@ namespace SMBLibrary.Authentication.GSSAPI
/// <summary> /// <summary>
/// https://tools.ietf.org/html/rfc2743 /// https://tools.ietf.org/html/rfc2743
/// </summary> /// </summary>
/// <exception cref="System.IO.InvalidDataException"></exception>
public static SimpleProtectedNegotiationToken ReadToken(byte[] tokenBytes, int offset) public static SimpleProtectedNegotiationToken ReadToken(byte[] tokenBytes, int offset)
{ {
byte tag = ByteReader.ReadByte(tokenBytes, ref offset); byte tag = ByteReader.ReadByte(tokenBytes, ref offset);

View file

@ -35,6 +35,7 @@ namespace SMBLibrary.Authentication.GSSAPI
} }
/// <param name="offset">The offset following the NegTokenInit tag</param> /// <param name="offset">The offset following the NegTokenInit tag</param>
/// <exception cref="System.IO.InvalidDataException"></exception>
public SimpleProtectedNegotiationTokenInit(byte[] buffer, int offset) public SimpleProtectedNegotiationTokenInit(byte[] buffer, int offset)
{ {
int constructionLength = DerEncodingHelper.ReadLength(buffer, ref offset); int constructionLength = DerEncodingHelper.ReadLength(buffer, ref offset);

View file

@ -40,6 +40,7 @@ namespace SMBLibrary.Authentication.GSSAPI
} }
/// <param name="offset">The offset following the NegTokenResp tag</param> /// <param name="offset">The offset following the NegTokenResp tag</param>
/// <exception cref="System.IO.InvalidDataException"></exception>
public SimpleProtectedNegotiationTokenResponse(byte[] buffer, int offset) public SimpleProtectedNegotiationTokenResponse(byte[] buffer, int offset)
{ {
int constuctionLength = DerEncodingHelper.ReadLength(buffer, ref offset); int constuctionLength = DerEncodingHelper.ReadLength(buffer, ref offset);