diff --git a/lib/PuppeteerSharp/PuppeteerSharp.csproj b/lib/PuppeteerSharp/PuppeteerSharp.csproj index 26a43bd1a..85f55f1ff 100644 --- a/lib/PuppeteerSharp/PuppeteerSharp.csproj +++ b/lib/PuppeteerSharp/PuppeteerSharp.csproj @@ -12,10 +12,10 @@ Headless Browser .NET API PuppeteerSharp - 20.0.4 - 20.0.4 - 20.0.4 - 20.0.4 + 20.0.5 + 20.0.5 + 20.0.5 + 20.0.5 false false embedded diff --git a/lib/PuppeteerSharp/SecurityDetails.cs b/lib/PuppeteerSharp/SecurityDetails.cs index 8bbd4a749..20409cfc4 100644 --- a/lib/PuppeteerSharp/SecurityDetails.cs +++ b/lib/PuppeteerSharp/SecurityDetails.cs @@ -22,12 +22,27 @@ public SecurityDetails() /// Valid to. /// Protocol. public SecurityDetails(string subjectName, string issuer, long validFrom, long validTo, string protocol) + : this(subjectName, issuer, validFrom, validTo, protocol, []) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// Subject name. + /// Issuer. + /// Valid from. + /// Valid to. + /// Protocol. + /// Subject alternative names. + public SecurityDetails(string subjectName, string issuer, long validFrom, long validTo, string protocol, string[] subjectAlternativeNames) { SubjectName = subjectName; Issuer = issuer; ValidFrom = validFrom; ValidTo = validTo; Protocol = protocol; + SubjectAlternativeNames = subjectAlternativeNames; } /// @@ -59,5 +74,11 @@ public SecurityDetails(string subjectName, string issuer, long validFrom, long v /// /// The protocol. public string Protocol { get; set; } + + /// + /// Gets the list of subject alternative names (SANs) of the certificate. + /// + /// The list of subject alternative names (SANs) of the certificate. + public string[] SubjectAlternativeNames { get; set; } } }