Skip to content

Commit e64d2ef

Browse files
committed
cleanup of obsolete stuff
1 parent 730f7a4 commit e64d2ef

2 files changed

Lines changed: 4 additions & 21 deletions

File tree

Asn1Parser/Asn1Parser.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Company>Sysadmins LV</Company>
77
<Description>ASN.1 binary parser and utility set for binary data encoded with Distinguished Encoding Rules (DER).</Description>
88
<Copyright>Copyright © Sysadmins LV 2012 - 2018</Copyright>
9-
<AssemblyVersion>1.2.5.51</AssemblyVersion>
10-
<FileVersion>1.2.5.51</FileVersion>
9+
<AssemblyVersion>1.2.7.51</AssemblyVersion>
10+
<FileVersion>1.2.7.51</FileVersion>
1111
<AssemblyName>SysadminsLV.Asn1Parser</AssemblyName>
1212
<RootNamespace>SysadminsLV.Asn1Parser</RootNamespace>
1313
<PackageLicenseUrl>https://github.com/Crypt32/Asn1DerParser.NET/blob/master/LICENSE.md</PackageLicenseUrl>

Asn1Parser/Asn1Reader.cs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ public void MoveNextCurrentLevelAndExpectTags(params Byte[] expectedTags) {
411411
/// method must be called prior to first call of this method. Subsequent <strong>BuildOffsetMap</strong>
412412
/// method calls are not necessary.
413413
/// </remarks>
414-
[Obsolete("This method contains a typo. Use MoveToPosition instead.")]
415-
public Boolean MoveToPoisition(Int32 newPosition) {
414+
public Boolean MoveToPosition(Int32 newPosition) {
416415
if (_offsetMap == null) {
417416
throw new InvalidOperationException();
418417
}
@@ -424,22 +423,6 @@ public Boolean MoveToPoisition(Int32 newPosition) {
424423
return true;
425424
}
426425
/// <summary>
427-
/// Moves to a specified start offset.
428-
/// </summary>
429-
/// <param name="newPosition">ASN structure start position (offset).</param>
430-
/// <returns>
431-
/// <strong>True</strong> if specified offset is valid and pointer was successfully set to specified position,
432-
/// otherwise <strong>False</strong>.
433-
/// </returns>
434-
/// <remarks>
435-
/// Specified position validity is determined based on internal map and <see cref="BuildOffsetMap"/>
436-
/// method must be called prior to first call of this method. Subsequent <strong>BuildOffsetMap</strong>
437-
/// method calls are not necessary.
438-
/// </remarks>
439-
public Boolean MoveToPosition(Int32 newPosition) {
440-
return MoveToPoisition(newPosition);
441-
}
442-
/// <summary>
443426
/// Moves to the beginning of the file.
444427
/// </summary>
445428
public void Reset() {
@@ -490,7 +473,7 @@ public static String GetTagName(Byte tag) {
490473
if ((tag & (Byte)Asn1Class.PRIVATE) != 0) {
491474
switch (tag & (Byte)Asn1Class.PRIVATE) {
492475
case (Byte)Asn1Class.CONTEXT_SPECIFIC:
493-
return $"CONTEXT_SPECIFIC ({index})";
476+
return $"CONTEXT_SPECIFIC [{index}]";
494477
case (Byte)Asn1Class.APPLICATION:
495478
return $"APPLICATION ({index})";
496479
case (Byte)Asn1Class.PRIVATE:

0 commit comments

Comments
 (0)