public void StopTransportLayerSecurity() { if (!Utility.IsWin2kOS) { if (!this.connection.disposed) { byte num = Wldap32.ldap_stop_tls(this.connection.ldapHandle); if (num != 0) { return; } else { throw new TlsOperationException(null, Res.GetString("TLSStopFailure")); } } else { throw new ObjectDisposedException(this.GetType().Name); } } else { throw new PlatformNotSupportedException(Res.GetString("TLSNotSupported")); } }
public void StopTransportLayerSecurity() { if (_connection.disposed) { throw new ObjectDisposedException(GetType().Name); } byte result = Wldap32.ldap_stop_tls(_connection.ldapHandle); if (result == 0) { // caller needs to close this ldap connection throw new TlsOperationException(null, String.Format(CultureInfo.CurrentCulture, SR.TLSStopFailure)); } }
public void StopTransportLayerSecurity() { if (Utility.IsWin2kOS) { throw new PlatformNotSupportedException(Res.GetString(Res.TLSNotSupported)); } if (_connection.disposed) { throw new ObjectDisposedException(GetType().Name); } byte result = Wldap32.ldap_stop_tls(_connection.ldapHandle); if (result == 0) { // caller needs to close this ldap connection throw new TlsOperationException(null, Res.GetString(Res.TLSStopFailure)); } }