Commit Graph

349 Commits (53e14bd3c9c81aafe0a413216d4d186ee5dbe091)

Author SHA1 Message Date
Jacob Barthelmeh a26bace432 fix size values on string cat 2018-06-04 10:29:08 -06:00
Jacob Barthelmeh dfdb2b1335 change return value for SFTP connection and clean up after rebase 2018-06-01 17:22:06 -06:00
Jacob Barthelmeh 2b934bd941 update error values and fix [l]stat status packet 2018-06-01 17:20:54 -06:00
Jacob Barthelmeh 0194784e6d use XSTRNCMP and remove debug code used during devel 2018-06-01 17:20:54 -06:00
Jacob Barthelmeh b467a3073c able to establish SFTP connection and start of adding commands (still in devel, has debug print statements)
refactor sending SFTP packets

try to make internal function names more clear, add comments, and update sftp example

add parsing names and most of attributes

add SFTP debug tag

add mkdir with SFTP

start of framework for get

add get command and keep track of working directory

base case of put command

basic sftp rename command

basic sftp rm command

initial basic rmdir command added

initial basic reget/reput commands

clean up absolute path to working directory

move location of sftp client app and more testing

add more comments and make code more readable

cast on values and add exit

adjust macro names and test make dist

adjust gitignore and macro names

gcc-7 build

revert nameListIdx increment to find ssh-rsa

more comments

fix for possible use uninitialized warning

initial SFTP accept

send status packet and start of realpath

server side mkdir

initial process of stat and lstat packets

initial processing of rmdir packet

basics for server handling SFTP get command

initial commit for server handling basic put command

initial handling of receiving remove packet

initial server handling of rename packet

initial implementation of handling directory packets

better checking on return values

set correct return value on successful read

additional sanity checks on user inputs

make send and read packet API name more clear

cast for warning building with clang
2018-06-01 17:20:54 -06:00
Chris Conlon 38d84d858d
Merge pull request #70 from ejohnstown/logging
Logging Update
2018-06-01 16:44:35 -06:00
John Safranek cc88322585 Logging Update
1. Instead of replacing NO_TIMESTAMP, deprecate the old name and convert it to WOLFSSH_NO_TIMESTAMP.
2018-06-01 15:42:47 -07:00
John Safranek 5e67f2f027 Logging Update
1. Added new error codes for being unable to match ciphers with peer.
2. Whitespace updates in the error header.
3. Added disable flag to leave out the default log callback so user can supply own custom callback.
2018-06-01 15:00:40 -07:00
JacobBarthelmeh 99a8f00061
Merge pull request #67 from ejohnstown/fix-fuzz
Fix Fuzz
2018-06-01 13:36:00 -06:00
John Safranek a399617780 Fuzz Test Fixes
1. Fix a possible underflow error when reading the F value from the KEX DH Reply message.
2018-06-01 11:05:13 -07:00
John Safranek 9f968498e4
Merge pull request #56 from cconlon/scp
SCP Server Support
2018-06-01 10:39:24 -07:00
Chris Conlon e2f08f40d8 add scp to README.md 2018-05-31 13:45:55 -06:00
Chris Conlon a6e8c59b97 scp modifications from embedded port 2018-05-31 13:45:55 -06:00
Chris Conlon 5a8642673b free scp file buffer if existing or upon error when reading 2018-05-31 13:45:55 -06:00
Chris Conlon 871a3fa719 update scp error codes and strings 2018-05-31 13:45:54 -06:00
Chris Conlon 8b6ac82158 update include.am files for scp 2018-05-31 13:45:54 -06:00
Chris Conlon 2151229eb4 switch SCP_USER_CALLBACKS to WOLFSSH_SCP_USER_CALLBACKS 2018-05-31 13:45:54 -06:00
Chris Conlon 62d00eeaf9 update scp comments, cleanup 2018-05-31 13:45:54 -06:00
Chris Conlon 912afe9210 scp scan-build fixes 2018-05-31 13:45:54 -06:00
Chris Conlon bfd0d925d9 add NO_FILESYSTEM checks for scp build 2018-05-31 13:45:54 -06:00
Chris Conlon 6cbfb0e26d add scp server support for copy from server to peer 2018-05-31 13:45:54 -06:00
Chris Conlon 5a42829087 add scp server support for receiving individual files and recursive
directories
2018-05-31 13:45:54 -06:00
Chris Conlon b530d26357 add WFREAD, WFWRITE 2018-05-31 13:45:54 -06:00
Chris Conlon 6a22968b87 enable compilation of example server by default 2018-05-31 13:45:54 -06:00
Chris Conlon f37c7224fb fix threading in example server 2018-05-31 13:45:53 -06:00
John Safranek cfc7f7d1d0
Merge pull request #68 from JacobBarthelmeh/testing
update name for SHA
2018-05-31 10:42:58 -07:00
Chris Conlon d233816852
Merge pull request #69 from TimParrish/branchCheckedOut
changed configure option for building wolfSSL per John S. comments
2018-05-30 11:51:19 -06:00
Tim 859c6792cf changed configure option for building wolfSSL per John S. comments 2018-05-30 11:45:48 -06:00
Jacob Barthelmeh ff9d88f2ee update name for SHA 2018-05-30 11:29:12 -06:00
John Safranek 82adf1f23c
Merge pull request #66 from aaronjense/wlog-typo-fix
fixed possible WLOG typo
2018-05-24 13:53:21 -07:00
John Safranek 37eb1bc59d Fuzz Test Fixes
1. Add a maximum packet size value and verify the read packet size.
2018-05-24 13:10:49 -07:00
Aaron Jense 04fe344d1d fixed possible WLOG typo 2018-05-24 13:08:38 -06:00
John Safranek a528f57840 Fuzz Test Fixes
1. Added some more size checks for the signature parsing in `KexDhReply()`.
2018-05-24 11:36:12 -07:00
John Safranek 945703b791 Fuzz Test Fixes
1. A bounds check in `KexDhReply()` for fSz could be tricked into using an incorrect value and trigger a crash. Rearranged the inequality so it can't be tricked.
2. A bounds check in `GetUint32()` for the size of the length value being used could cause crashes. Rearranged the inequality so it can't be tricked.
3. Modified other similar bounds checks.
4. In `KexDhReply()` check the sigSz after reading.
2018-05-24 10:50:53 -07:00
Chris Conlon ed4b978542
Merge pull request #65 from ejohnstown/update-flags
Update Flags
2018-05-23 17:22:08 -06:00
John Safranek 76ec35c716 Update Flags
In ax_harden_compiler_flags.m4, a couple of the AC_REQUIRE macros were being used to check for the presence of another macro. Replaced them with uses of AX_REQUIRE_DEFINED which checks for the presence of a macro. AC_REQUIRE ensures a macro is expanded.
2018-05-23 15:48:23 -07:00
Chris Conlon 8d790ba894
Merge pull request #64 from ejohnstown/update-configure
Update Configure
2018-05-23 11:16:20 -06:00
John Safranek a3da921219 Update Configure
1. Removed some redundant macros.
2. Added missing quotes to some macro parameters.
3. Condensed some sets of macros into a single macro with a parameter list.
4. Removed some ignored parameters to macros.
2018-05-23 09:48:38 -07:00
Chris Conlon 946531c6b0
Merge pull request #62 from ejohnstown/update-m4
Update M4
2018-05-23 09:38:25 -06:00
John Safranek a7dde2bec6 Update M4
1. Remove the reinitialize of CFLAGS from the AX_HARDEN_CC_FLAGS macro.
2018-05-22 16:19:32 -07:00
John Safranek 14ac7331cb
Merge pull request #63 from JacobBarthelmeh/readme
update readme with tip for resource reduction
2018-05-22 14:06:46 -07:00
John Safranek a41b292484 Update M4
1. Update several of the macro files paralleling wolfSSL's m4 files.
2. Check the ar options and if available add the "U" options.
3. Add the -Xcompiler flag ahead of -Qunused-arguments for -pthreads.
2018-05-21 15:22:35 -07:00
Jacob Barthelmeh 0278fd59f2 update readme with tip for resource reduction 2018-05-21 10:34:46 -06:00
John Safranek d23a47bd19
Merge pull request #60 from JacobBarthelmeh/testing
revert increment of nameListIdx for RSA connection
2018-05-18 17:00:02 -07:00
Jacob Barthelmeh 9312179ec8 revert increment of nameListIdx for RSA connection 2018-05-18 09:45:40 -06:00
JacobBarthelmeh c2a3de1332
Merge pull request #59 from ejohnstown/test-errcode
Error Code Unit Test
2018-05-10 15:06:10 -06:00
John Safranek e1f242f451
Merge pull request #54 from JacobBarthelmeh/fuzz
check for overflow case
2018-05-10 14:02:35 -07:00
John Safranek c77345fc6c Error Code Unit Test
1. Add a unit test to check all error codes have strings.
2. Add public function to return the error string for an error code.
3. Fill in the missing error strings.
4. Fix an error string (change a "verify" to "create").
2018-05-10 13:55:59 -07:00
John Safranek 988c45b042
Merge pull request #58 from cconlon/scanbuild
fixes for scan-build warnings
2018-05-10 13:52:41 -07:00
JacobBarthelmeh 7f8250fb0f
Merge pull request #57 from cconlon/spacing
remove hard tabs in DoChannelClose()
2018-05-10 14:20:53 -06:00