POSIX uses an int for a file descriptor. In Windows, they use a SOCKET
type which isn't an int, it is a unsigned long. Changed the types of
the file descriptors to a WS_SOCKET_T, which is either an int or a
SOCKET. Added a unit test.
1. Renumbered the dynamic memory type IDs so they don't conflict with wolfCrypt/wolfSSL.
2. Renumbered the error codes so they don't conflict with wolfCrypt.
3. Fixed a couple of typos when using dynamic memory type IDs that were missed due to default memory handling being used.
The callback was getting a pointer to the raw public key data in the
receive buffer including the blob length, this caused the pubkey to be
short in the callback. Updated the pubKey given to the callback to be
the SSH encoded blob without the total size, and pass the total size in.
Also, update the hash of the public key to include the size.
update client example remote command execute for Windows
add wolfSSH_stream_peek and console translation
improvements to console translation and add client side psuedo terminal
windows client -c fix, clang build, sanity check on side for exec
fix for warnings with VS 2010 build
cast return value of WSTRLEN
update termios guard and fix for scan-build check
advance extended data buffer index on read
fix for error.h after rebase
The public key check callback hook is given a pointer to the public key, the size of the key, and the application-specific context data.
1. Added a callback function hook for checking the public key sent to the client by the server. It defaults to accepting the key.
2. Added accessors for the public key check callback function and context data.
3. Added a dummy callback to all the example tools.
64-bit value is an array 2 of 32-bit values. In SFTP, changed up all the
uses (most) of word64 to word32 arrays. Not all systems we support have
64-bit types available.
2. Split the error check on the Windows file write into two checks.
3. Check the success of closing the local file in Windows.
4. Rearrange the Get state machine to attempt to close the remote file
first then the local file. The local file close is always attempted.
2. Add option to echoserver for the SFTP path.
3. Fix issues with the Get() and Put() state machines with respect to
file access. Windows builds to use Win32 API. Windows builds do not use
fseek().
4. RecvRealPath() to use the new default path option if available. It
does not call getcwd() for Windows builds.
the error field of the ssh object and just returning WS_FATAL_ERROR.
Instead of changing all the downstream fucntions from DoReceive(), have
it store the return value into the error register and return WS_FATA_ERROR.
wolfSSL and wolfSSH both have a function named SendBuffered() and they
are both set to local visibility. There is at least one build
configuration where both versions of the function are visible and the
compile fails. Changing the name in wolfSSH to add the pseudonamespace
prefix wolfSSH_, and also changed the name of the function to
SendPacket() since it is used with two other functions with Packet in
the name.