You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using Renci.SshNet.Messages.Authentication;
|
|
|
|
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<SuccessMessage> e)
|
|
{
|
|
IsActive = true;
|
|
Session.UserAuthenticationSuccessReceived -= Session_UserAuthenticationSuccessReceived;
|
|
}
|
|
}
|
|
} |