Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ internal sealed class TimestampService : HttpResponder, IDisposable
private const string RequestContentType = "application/timestamp-query";
private const string ResponseContentType = "application/timestamp-response";

private readonly HashSet<BigInteger> _serialNumbers;
private BigInteger _nextSerialNumber;
private IDisposable? _disposable;
private readonly DirectoryService _directoryService;
Expand Down Expand Up @@ -53,7 +52,6 @@ private TimestampService(
CertificateAuthority = certificateAuthority;
Certificate = certificate;
Url = uri;
_serialNumbers = new HashSet<BigInteger>();
_nextSerialNumber = BigInteger.One;
_directoryService = new DirectoryService(Mock.Of<ILogger<IDirectoryService>>());
_temporaryDirectory = new TemporaryDirectory(_directoryService);
Expand Down Expand Up @@ -162,8 +160,6 @@ public override Task RespondAsync(HttpContext context)
_nextSerialNumber,
request.GetNonce());

_serialNumbers.Add(_nextSerialNumber);

++_nextSerialNumber;

SignedCms timestamp = GenerateTimestamp(request!, tstInfo);
Expand Down