mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-05 12:54:46 +00:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace Renci.SshNet.Compression
|
|
{
|
|
/// <summary>
|
|
/// Represents "zlib@openssh.org" compression implementation
|
|
/// </summary>
|
|
public class ZlibOpenSsh : Compressor
|
|
{
|
|
/// <summary>
|
|
/// Gets algorithm name.
|
|
/// </summary>
|
|
public override string Name
|
|
{
|
|
get { return "zlib@openssh.org"; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes the algorithm
|
|
/// </summary>
|
|
/// <param name="session">The session.</param>
|
|
public override void Init(Session session)
|
|
{
|
|
base.Init(session);
|
|
|
|
session.UserAuthenticationSuccessReceived += Session_UserAuthenticationSuccessReceived;
|
|
}
|
|
|
|
private void Session_UserAuthenticationSuccessReceived(object sender, MessageEventArgs<Messages.Authentication.SuccessMessage> e)
|
|
{
|
|
this.IsActive = true;
|
|
this.Session.UserAuthenticationSuccessReceived -= Session_UserAuthenticationSuccessReceived;
|
|
}
|
|
}
|
|
} |