/* * Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved. * * This file is part of System Informer. * * Authors: * * dmex * */ namespace CustomBuildTool { /// /// Contains configuration for timestamping authenticode signatures. /// public readonly struct TimeStampConfiguration { /// /// The URL to the timestamp authority. /// public string Url { get; } = "http://timestamp.digicert.com"; /// /// The digest algorithm the timestamp service authority should use on timestamp signatures. /// public HashAlgorithmName DigestAlgorithm { get; } /// /// The type of timestamp to use. See for details, or null if /// no timestamping should be performed. /// public TimeStampType? Type { get; } = TimeStampType.RFC3161; /// /// A default timestamp configuration indicating no timestamp should be generated. /// public static TimeStampConfiguration None { get; } /// /// Creates a new instance of a . /// /// The URL to the timestamp authority. /// The type of timestamp to use. See for details. public TimeStampConfiguration(string url, TimeStampType type) { this.Url = url; this.Type = type; } } /// /// An enumeration of possible timestamp kinds. /// public enum TimeStampType { /// /// Indicates that a timestamp authority should use the legacy Authenticode style of timestamps. /// This option should only be used for backward compatibility with Windows XP and only supports /// timestamp signatures. /// Authenticode, /// /// Indicates that a timestamp authority should use an RFC3161 timestamp signatures. /// RFC3161 } }