Loading WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/CertificateHandling.cs +10 −10 Original line number Diff line number Diff line Loading @@ -20,16 +20,6 @@ namespace Microsoft.Tools.WindowsDevicePortal /// </content> public partial class DevicePortal { /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(Certificate cert) { CertificateStore store = CertificateStores.TrustedRootCertificationAuthorities; store.Add(cert); } /// <summary> /// Gets the root certificate from the device. /// </summary> Loading Loading @@ -80,5 +70,15 @@ namespace Microsoft.Tools.WindowsDevicePortal return certificate; } #pragma warning restore 1998 /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(Certificate cert) { CertificateStore store = CertificateStores.TrustedRootCertificationAuthorities; store.Add(cert); } } } WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/CertificateHandling.cs +9 −9 Original line number Diff line number Diff line Loading @@ -23,15 +23,6 @@ namespace Microsoft.Tools.WindowsDevicePortal /// </summary> private X509Certificate2 manualCertificate = null; /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(X509Certificate2 cert) { this.manualCertificate = cert; } /// <summary> /// Gets or sets handler for untrusted certificate handling /// </summary> Loading Loading @@ -59,6 +50,15 @@ namespace Microsoft.Tools.WindowsDevicePortal return certificate; } /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(X509Certificate2 cert) { this.manualCertificate = cert; } /// <summary> /// Validate the server certificate /// </summary> Loading Loading
WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/CertificateHandling.cs +10 −10 Original line number Diff line number Diff line Loading @@ -20,16 +20,6 @@ namespace Microsoft.Tools.WindowsDevicePortal /// </content> public partial class DevicePortal { /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(Certificate cert) { CertificateStore store = CertificateStores.TrustedRootCertificationAuthorities; store.Add(cert); } /// <summary> /// Gets the root certificate from the device. /// </summary> Loading Loading @@ -80,5 +70,15 @@ namespace Microsoft.Tools.WindowsDevicePortal return certificate; } #pragma warning restore 1998 /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(Certificate cert) { CertificateStore store = CertificateStores.TrustedRootCertificationAuthorities; store.Add(cert); } } }
WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/CertificateHandling.cs +9 −9 Original line number Diff line number Diff line Loading @@ -23,15 +23,6 @@ namespace Microsoft.Tools.WindowsDevicePortal /// </summary> private X509Certificate2 manualCertificate = null; /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(X509Certificate2 cert) { this.manualCertificate = cert; } /// <summary> /// Gets or sets handler for untrusted certificate handling /// </summary> Loading Loading @@ -59,6 +50,15 @@ namespace Microsoft.Tools.WindowsDevicePortal return certificate; } /// <summary> /// Sets the manual certificate. /// </summary> /// <param name="cert">Manual certificate</param> private void SetManualCertificate(X509Certificate2 cert) { this.manualCertificate = cert; } /// <summary> /// Validate the server certificate /// </summary> Loading