Skip to content

Minimal Changes Required for Pageant Support #781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Channels/IChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Renci.SshNet.Channels
/// <summary>
/// Represents SSH channel.
/// </summary>
internal interface IChannel : IDisposable
public interface IChannel : IDisposable
{
/// <summary>
/// Occurs when <see cref="ChannelDataMessage"/> is received.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Channels/IChannelDirectTcpip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Renci.SshNet.Channels
/// <summary>
/// A "direct-tcpip" SSH channel.
/// </summary>
internal interface IChannelDirectTcpip : IDisposable
public interface IChannelDirectTcpip : IDisposable
{
/// <summary>
/// Occurs when an exception is thrown while processing channel messages.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Channels/IChannelForwardedTcpip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Renci.SshNet.Channels
/// <summary>
/// A "forwarded-tcpip" SSH channel.
/// </summary>
internal interface IChannelForwardedTcpip : IDisposable
public interface IChannelForwardedTcpip : IDisposable
{
/// <summary>
/// Occurs when an exception is thrown while processing channel messages.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Channels/IChannelSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Renci.SshNet.Channels
/// <summary>
/// Session SSH channel.
/// </summary>
internal interface IChannelSession : IChannel
public interface IChannelSession : IChannel
{
/// <summary>
/// Opens the channel.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Common/ChannelDataEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Provides data for <see cref="Renci.SshNet.Channels.Channel.DataReceived"/> event.
/// </summary>
internal class ChannelDataEventArgs : ChannelEventArgs
public class ChannelDataEventArgs : ChannelEventArgs
{
/// <summary>
/// Gets channel data.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Common/ChannelEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Renci.SshNet.Common
/// <summary>
/// Base class for all channel related events.
/// </summary>
internal class ChannelEventArgs : EventArgs
public class ChannelEventArgs : EventArgs
{
/// <summary>
/// Gets the channel number.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Common/ChannelExtendedDataEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Provides data for <see cref="Renci.SshNet.Channels.Channel.ExtendedDataReceived"/> events.
/// </summary>
internal class ChannelExtendedDataEventArgs : ChannelDataEventArgs
public class ChannelExtendedDataEventArgs : ChannelDataEventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ChannelExtendedDataEventArgs"/> class.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Common/ChannelRequestEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Renci.SshNet.Common
/// <summary>
/// Provides data for <see cref="Renci.SshNet.Channels.Channel.RequestReceived"/> event.
/// </summary>
internal class ChannelRequestEventArgs : EventArgs
public class ChannelRequestEventArgs : EventArgs
{
/// <summary>
/// Gets request information.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/IConnectionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal interface IConnectionInfoInternal : IConnectionInfo
/// <summary>
/// Represents remote connection information.
/// </summary>
internal interface IConnectionInfo
public interface IConnectionInfo
{
/// <summary>
/// Gets or sets the timeout to used when waiting for a server to acknowledge closing a channel.
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/ISession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Renci.SshNet
/// <summary>
/// Provides functionality to connect and interact with SSH server.
/// </summary>
internal interface ISession : IDisposable
public interface ISession : IDisposable
{
/// <summary>
/// Gets or sets the connection info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// Represents SSH_MSG_USERAUTH_PK_OK message.
/// </summary>
[Message("SSH_MSG_USERAUTH_PK_OK", 60)]
internal class PublicKeyMessage : Message
public class PublicKeyMessage : Message
{
/// <summary>
/// Gets the name of the public key algorithm as ASCII encoded byte array.
Expand Down
7 changes: 6 additions & 1 deletion src/Renci.SshNet/PrivateKeyAuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ private void Session_UserAuthenticationFailureReceived(object sender, MessageEve
_authenticationCompleted.Set();
}

private void Session_UserAuthenticationPublicKeyReceived(object sender, MessageEventArgs<PublicKeyMessage> e)
/// <summary>
/// Public Key Received Event Handler
/// </summary>
/// <param name="sender">Event sender</param>
/// <param name="e">Public Key Message</param>
public void Session_UserAuthenticationPublicKeyReceived(object sender, MessageEventArgs<PublicKeyMessage> e)
{
_isSignatureRequired = true;
_authenticationCompleted.Set();
Expand Down
12 changes: 6 additions & 6 deletions src/Renci.SshNet/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public Message ClientInitMessage
/// <summary>
/// Occurs when <see cref="PublicKeyMessage"/> message is received from the server.
/// </summary>
internal event EventHandler<MessageEventArgs<PublicKeyMessage>> UserAuthenticationPublicKeyReceived;
public event EventHandler<MessageEventArgs<PublicKeyMessage>> UserAuthenticationPublicKeyReceived;

/// <summary>
/// Occurs when <see cref="KeyExchangeDhGroupExchangeGroup"/> message is received from the server.
Expand Down Expand Up @@ -449,12 +449,12 @@ public Message ClientInitMessage
/// <summary>
/// Occurs when <see cref="FailureMessage"/> message received
/// </summary>
internal event EventHandler<MessageEventArgs<FailureMessage>> UserAuthenticationFailureReceived;
public event EventHandler<MessageEventArgs<FailureMessage>> UserAuthenticationFailureReceived;

/// <summary>
/// Occurs when <see cref="SuccessMessage"/> message received
/// </summary>
internal event EventHandler<MessageEventArgs<SuccessMessage>> UserAuthenticationSuccessReceived;
public event EventHandler<MessageEventArgs<SuccessMessage>> UserAuthenticationSuccessReceived;

/// <summary>
/// Occurs when <see cref="GlobalRequestMessage"/> message received
Expand Down Expand Up @@ -849,7 +849,7 @@ private WaitResult TryWait(WaitHandle waitHandle, TimeSpan timeout, out Exceptio
/// <exception cref="SshConnectionException">A received package was invalid or failed the message integrity check.</exception>
/// <exception cref="SshOperationTimeoutException">None of the handles are signaled in time and the session is not disconnecting.</exception>
/// <exception cref="SocketException">A socket error was signaled while receiving messages from the server.</exception>
internal void WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
public void WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
{
if (waitHandle == null)
throw new ArgumentNullException("waitHandle");
Expand Down Expand Up @@ -889,7 +889,7 @@ internal void WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
/// <exception cref="SshConnectionException">The client is not connected.</exception>
/// <exception cref="SshOperationTimeoutException">The operation timed out.</exception>
/// <exception cref="InvalidOperationException">The size of the packet exceeds the maximum size defined by the protocol.</exception>
internal void SendMessage(Message message)
public void SendMessage(Message message)
{
if (!_socket.CanWrite())
throw new SshConnectionException("Client not connected.");
Expand Down Expand Up @@ -2145,7 +2145,7 @@ bool ISession.TrySendMessage(Message message)
/// <summary>
/// Represents the result of a wait operations.
/// </summary>
internal enum WaitResult
public enum WaitResult
{
/// <summary>
/// The <see cref="WaitHandle"/> was signaled within the specified interval.
Expand Down