1. Update scp.test to delete the empty test file.
2. In wolfSSHd, when coverting an IP address to a printable
representation, the destination needs to be able to handle IPv6
addresses potentially.
1. For the ASCII and Wide versions of types and functions, make sure
the wolfSSHd is being consistent using them.
2. In SFTP, use WSOCKETCLOSE to close the socket. Use the correct type
for the socket.
3. Add parens around part of a ternary operator check to clear up some
ambiguous order of operations.
4. Add a variable initializer for a COORD structure.
5. Add parameter checks to the Base16_Decode function.
6. Fix a double-freed handle.
7. Clean up a bunch of build warnings.
1. Fix echoserver's load_file function. Could potentially dereference
null if a file size is passed in, but using a null buf to get the
file's size only.
1. Splitting the top level SCP functions for either from or to, and
incorporating the sub-functions in appropriately.
2. Put making the scp command line to send to the peer into its own
function.
1. Rearrange the matching of the MAC Algos when decoding the KEX Init
message. It should only dereference the handshake info to check if it
is using an AEAD cipher if ret is WS_SUCCESS. (If the handshake info
isn't present, there will be an error present.) This prevents a
possible NULL dereference.
1. Initialize all the fds to -1.
2. Add flags for peerConnected and stdoutEmpty.
3. Remove the idle counter.
4. When the socket would block on write, set a flag to check the socket for
writing later to call the worker which will send pending data.
5. When reading the pipes, a 0 returns means the pipe is closed. Deal
with that.
6. If the ssh write fails, interrupt the subordinate process.
7. When waiting for the peer to close its channel and shutdown, sleep
for 100ms, rather than 1us. It takes a little while to tear down.
8. Shutdown the peer socket. Spin on receiving the peer socket until it
closes or has an error.
9. Fixed a few function wrappers; was using Xname instead of Wname.
1. Add getting the banner option from the configuration file. Per the
sshd_config(5) manpage, this is supposed to be a filename.
2. Load the banner file and set the banner into the CTX.
1. For a Zephyr build setup, the compiler was complaining about some
uninitialized variables that were getting used. Set them to 0 or NULL
to make the compiler happy.
1. Treat any non-zero response from any of the channel request callback
functions as a rejection of the channel request.
2. If a channel request reply is wanted, return the failure message if
the callback function had rejected the request.
1. Move the session types earlier in the ssh.h header.
2. Add functions wolfSSH_ChannelGetSessionType() and
wolfSSH_ChannelGetSessionCommand() to requestion information about a
session.
1. Add callback for the "shell" Channel Request message for the server.
2. Whitespace and braces changes.
3. Relabel the string for administratively prohibited channel opens.
4. Add some comment.
1. Added callbacks for receiving a Channel EOF message and a Channel
Close message.
2. Added accessors for the new callback's ctx parameters.
3. Add some missing comments on the channel open callbacks.
1. Add the code from wolfsshd that initially sets up the terminal
settings to the echoserver.
2. Add the WOLFSSH_TERM flag to the build of the echoserver.
1. When the server tries to open a file, get the attributes following
links.
2. Add decoding links from the file attributes when making a long name.
3. When the server gets a file attributes for the file list, do not
follow links.
4. When the client tries to stat a file before getting it, it should use
the stat that follows links.