From 42552f4d5d00e9583a1ec5d38f652979c1b84965 Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Thu, 27 Mar 2025 08:15:14 -0500 Subject: [PATCH] Don't expose TrustedCertificatesDirectory() and StartNewTlsSessionContext() to NetFx --- .../ref/System.DirectoryServices.Protocols.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs b/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs index 126be30b3ddb26..49ff2a1891cee0 100644 --- a/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs +++ b/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.cs @@ -382,8 +382,10 @@ public partial class LdapSessionOptions internal LdapSessionOptions() { } public bool AutoReconnect { get { throw null; } set { } } public string DomainName { get { throw null; } set { } } +#if NET [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")] public string TrustedCertificatesDirectory { get { throw null; } set { } } +#endif public string HostName { get { throw null; } set { } } public bool HostReachable { get { throw null; } } public System.DirectoryServices.Protocols.LocatorFlags LocatorFlag { get { throw null; } set { } } @@ -404,8 +406,10 @@ internal LdapSessionOptions() { } public bool Signing { get { throw null; } set { } } public System.DirectoryServices.Protocols.SecurityPackageContextConnectionInformation SslInformation { get { throw null; } } public int SspiFlag { get { throw null; } set { } } +#if NET [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("windows")] public void StartNewTlsSessionContext() { } +#endif public bool TcpKeepAlive { get { throw null; } set { } } public System.DirectoryServices.Protocols.VerifyServerCertificateCallback VerifyServerCertificate { get { throw null; } set { } } public void FastConcurrentBind() { }