Skip to content

Commit

Permalink
Merge pull request #3127 from vexx32/2902-tls-public-frown
Browse files Browse the repository at this point in the history
(#2902) Make HttpsSecurity class public
  • Loading branch information
gep13 authored Apr 20, 2023
2 parents b18c480 + e5a8e6a commit 5cbf023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chocolatey/infrastructure/registration/HttpsSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
using System.Text;
using System.Threading.Tasks;

internal static class HttpsSecurity
public static class HttpsSecurity
{
/// <summary>
/// Resets the <see cref="ServicePointManager.SecurityProtocol"/> and <see cref="ServicePointManager.ServerCertificateValidationCallback"/> for HTTPS connections
/// in order to ensure that PowerShell scripts we run can't have a persistent effect on these settings across the whole process after they're done running.
/// </summary>
internal static void Reset()
public static void Reset()
{
// SystemDefault is used because:
// 1. Most supported operating systems default to / require TLS 1.2 anyway.
Expand Down

0 comments on commit 5cbf023

Please sign in to comment.