Commit Graph

873 Commits (a269b1e8431c4fb47bcdc31623b01e8236fb360e)

Author SHA1 Message Date
Jacob Barthelmeh df0b9ed889 init on mp_int r and s 2020-03-03 14:33:00 -07:00
Chris Conlon 3ea6737740
Merge pull request #249 from ejohnstown/maint-mqx
MQX Maintenance
2020-03-03 13:08:30 -07:00
John Safranek 0e9317841d
MQX Maintenance
1. Include header rtcs.h. It is missed if not using SCP.
2020-03-03 11:45:35 -08:00
John Safranek 9d1cbbab8e
wolfSCP
Add support for an example SCP client.
2020-03-03 11:27:02 -08:00
Chris Conlon 86ee47bd33
Merge pull request #246 from JacobBarthelmeh/memory
fix XFREE/MALLOC typo to be WFREE/MALLOC
2020-02-28 09:12:57 -07:00
Chris Conlon 257e885cc8
Merge pull request #247 from JacobBarthelmeh/compile
remove mp_todecimal to fix sp build
2020-02-28 09:09:57 -07:00
John Safranek 380a53554b
Merge pull request #241 from JacobBarthelmeh/scp
exit channel in echoserver before sending disconnect
2020-02-27 19:18:30 -08:00
John Safranek abf126206a
Merge pull request #244 from JacobBarthelmeh/sftp
add directory attribute to Windows build
2020-02-27 19:07:38 -08:00
Jacob Barthelmeh 4aa65dd30e remove mp_todecimal to fix sp build 2020-02-26 15:23:18 -07:00
Jacob Barthelmeh 22cab294b1 fix XFREE/MALLOC typo to be WFREE/MALLOC 2020-02-26 13:19:43 -07:00
Jacob Barthelmeh 9aeabb5068 add directory attribute to Windows build 2020-02-20 14:34:52 -07:00
Jacob Barthelmeh aa3fcc71a4 fix for scan-build warning 2020-02-19 10:17:12 -07:00
JacobBarthelmeh 552b763e4f
Merge pull request #243 from ejohnstown/vxworks
VxWorks Customizations
2020-02-18 17:08:00 -07:00
John Safranek 7c8ae04b44
VxWorks Customizations
Also includes some bug fixes.
1. Add a function that returns a pointer to a session's username string.
2. Add a function to set a "raw" username copied from an incoming packet.
3. Add tests for 1 and 2.
4. Server saves a copy of the username on successful authentication.
5. Fix bug with GetString() where it would choke on a 0 length string.
6. Clean up the termios macros and mode creation.
7. Add some options for when WOLFSSL_VXWORKS is set.
2020-02-18 16:01:00 -08:00
John Safranek 52183c3018
Merge pull request #242 from JacobBarthelmeh/auth
updates to auth callback
2020-02-18 14:29:22 -08:00
Jacob Barthelmeh 9b7700cd6b adjust stream exit in scp case 2020-02-14 17:52:25 -07:00
John Safranek 7bd642fa82
Merge pull request #237 from JacobBarthelmeh/sftp
adjust long name
2020-02-11 14:11:24 -08:00
Jacob Barthelmeh 67851e5c10 updates to auth callback 2020-02-11 15:04:50 -07:00
Jacob Barthelmeh 84785ffe39 exit channel in echoserver before sending disconnect 2020-02-11 14:41:14 -07:00
JacobBarthelmeh 6da72d6f7f
Merge pull request #240 from ejohnstown/include-maint
Automake Include Maintenance
2020-02-11 10:19:22 -07:00
Jacob Barthelmeh 03ef1e7f83 add null terminator 2020-02-11 09:49:27 -07:00
Jacob Barthelmeh 861ee42d0b adjust long name 2020-02-11 09:30:25 -07:00
John Safranek d7ef3efae9
Merge pull request #238 from JacobBarthelmeh/compile
add SIZEOF_OFF_T guess to wolfsftp.c
2020-02-10 16:08:09 -08:00
John Safranek 51d4b14155
Automake Include Maintenance
Remove redundant items from the automake includes. They were including files already included.
2020-02-10 15:44:55 -08:00
JacobBarthelmeh b3ddb93b65
Merge pull request #239 from ejohnstown/aesctr-fix
AES-CTR Fix
2020-02-10 14:19:04 -07:00
John Safranek 626fd148a7
AES-CTR Fix
AES-CTR encrypt is supposed to work when the input and output pointers
are the same. The FIPSv2 version of the function doesn't work this way,
it only works when the input and output are different. This commit adds
a helper function that wraps the AES-CTR encrypt function when using
FIPSv2 so it only encrypts/decrypts a single block at a time.
2020-02-10 13:12:14 -08:00
Jacob Barthelmeh a5c630f3aa revert setting SIZEOF_OFF_T in wolfsftp.c 2020-02-10 14:02:17 -07:00
Jacob Barthelmeh 633446fcce move guess of SIZEOF_OFF_T in non-autoconf builds to port.h 2020-02-07 15:58:52 -07:00
John Safranek 50739b3abe
Merge pull request #235 from JacobBarthelmeh/auth
public key vs password is now decision of user callback
2020-01-31 14:11:38 -08:00
JacobBarthelmeh 00ef17db8b
Merge pull request #236 from ejohnstown/maint-keygen
Maintenance
2020-01-31 13:58:33 -07:00
Jacob Barthelmeh 3e241ae8ec update how authentication type is pased to user callback 2020-01-30 15:42:26 -07:00
John Safranek 46f4912a18
Maintenance
1. Hid the wolfSSH_oct2dec() and AddAssign64() functions when wolfSFTP
isn't built as they are only used by SFTP.
2. wolfSSH_oct2dec() has a fallback implementation if MP math isn't set
in wolfSSL, along with a few other flags. It was reporting a mixed
signed/unsigned comparison in its loop. Changed the loop index to
unsigned.
3. Reformatted the function wolfSSH_oct2dec().
2020-01-29 10:10:35 -08:00
Jacob Barthelmeh 31131c0e03 public key vs password is now decision of user callback 2020-01-27 10:33:28 -07:00
John Safranek ea1b61c3b3
Merge pull request #234 from JacobBarthelmeh/compile
fix for no old name build
2020-01-24 10:52:38 -08:00
Jacob Barthelmeh f1d00102ba fix for no old name build 2020-01-23 08:54:21 -08:00
John Safranek 3a060b1a69
Merge pull request #232 from cconlon/copyright2020
update copyright to 2020
2020-01-03 15:29:08 -08:00
Chris Conlon 83f8372458 update copyright to 2020 2020-01-03 15:16:47 -08:00
John Safranek bac12d8a5e
Merge pull request #231 from JacobBarthelmeh/fuzz
additional sanity checks
2019-12-18 12:48:06 -08:00
Jacob Barthelmeh e10e0c3ee7 sanity check on buffer size with DoDebug 2019-12-17 14:30:06 -07:00
Jacob Barthelmeh 6c86ccabc1 sanity check on auth name size 2019-12-17 14:23:58 -07:00
Jacob Barthelmeh c01edacd09 add sanity check on data size for extended data types 2019-12-17 14:12:23 -07:00
Jacob Barthelmeh f3cef532db free up previous orign/host with forwarding 2019-12-17 13:37:43 -07:00
John Safranek 098430bb8d
Merge pull request #229 from JacobBarthelmeh/compile
clean up clang compile warnings
2019-12-13 12:23:10 -08:00
Chris Conlon 835a57d697
Merge pull request #230 from ejohnstown/maintenance
Maintenance
2019-12-13 10:53:58 -07:00
Jacob Barthelmeh 0845ae179b clean up clang compile warnings 2019-12-06 16:41:17 -07:00
John Safranek e1fe9bce9d
Maintenance
Static analysis found a couple instances where a string pointer to
strlen or strncpy might be NULL. Added additional checking.
2019-12-06 15:38:07 -08:00
John Safranek 6129cf66d3
Merge pull request #228 from JacobBarthelmeh/compile
use off_t type with pwrite/pread
2019-12-06 15:19:46 -08:00
Jacob Barthelmeh 526ca192b3 add check for shifting stats.st_size (type off_t) 2019-12-06 09:55:18 -07:00
Jacob Barthelmeh c5228e0fd5 add check on off_t size to build 2019-12-05 18:22:43 -07:00
Jacob Barthelmeh 328fd66c1e use off_t type with pwrite/pread 2019-12-05 16:35:23 -07:00