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
JacobBarthelmeh
bbb778002a
Merge pull request #222 from ejohnstown/maintenance-rxtx
...
Maintenance: RX/TX
2019-12-05 15:03:15 -07:00
JacobBarthelmeh
185acf388d
Merge pull request #227 from ejohnstown/misc
...
Maintenance
2019-12-05 15:00:18 -07:00
John Safranek
cacd19819b
Maintenance
...
1. Clean up some scan-build complaints from the unit test. It was
potentially using memory after it was freed.
2019-12-05 13:43:46 -08:00
John Safranek
b6f1cc5039
Merge pull request #220 from guidovranken/NameToId-string-compare-fix
...
In NameToId, prevent any reliance on null-termination of string.
2019-12-05 13:36:14 -08:00
John Safranek
7d6e715e66
Update the readme files with the filename changes to the example user public keys.
2019-12-05 13:18:16 -08:00
John Safranek
e68e6620ce
Update and clarify the ECC options to the echoserver. (Added -E to the list.)
2019-12-05 13:18:16 -08:00
John Safranek
bca02d4b78
Merge pull request #226 from embhorn/overflow_fix
...
Update to account for overflow
2019-12-05 13:06:19 -08:00
Eric Blankenhorn
45cbdd92a3
Update to account for overflow
2019-12-05 14:43:45 -06:00
John Safranek
1d3484d674
Merge pull request #225 from embhorn/zd9598
...
Check for invalid size of e
2019-12-05 11:39:32 -08:00
John Safranek
5083800003
Merge pull request #224 from embhorn/zd9597
...
Check for buffer size error
2019-12-05 11:39:22 -08:00
John Safranek
23b654c654
Merge pull request #223 from embhorn/zd9599
...
Check dataSz in DoChannelData
2019-12-05 11:39:12 -08:00
Eric Blankenhorn
52501a1391
Check dataSz in DoChannelData
2019-12-04 15:43:56 -06:00
Eric Blankenhorn
a69307752d
Check for invalid size of e
2019-12-04 14:04:36 -06:00
Eric Blankenhorn
32ee6b069e
Check for buffer size error
2019-12-04 13:22:46 -06:00
John Safranek
b9ca9824b2
Maintenance: RX/TX
...
1. Before attempting to resize the output buffer in PreparePacket, make
sure the length and index in the output buffer is consistent.
2. If SendPacket gets a general error back from the call to the transmit
I/O callback, flush the output buffer and return the general error
upstream.
2019-12-03 14:55:55 -08:00
Guido Vranken
de551c10a9
In NameToId, prevent any reliance on null-termination of string.
2019-11-29 13:40:24 +01:00
Chris Conlon
b8f18d9459
Merge pull request #218 from JacobBarthelmeh/sftp-nuc
...
Fixes for SCP and SCP with Nucleus port
2019-11-06 14:16:00 -08:00
Jacob Barthelmeh
56030a5615
cleaning up fixes for nucleus scp
...
fix for repeat call of scp with changed directory name
check on directory already existing for Nucleus port
explicit check for delimiter at end of scp command
fixes for parsing scp command and nucleus port
2019-11-05 22:26:42 -07:00
JacobBarthelmeh
fbb8c90f0e
Merge pull request #214 from ejohnstown/release-prep
...
v1.4.3 Release Prep
2019-10-31 15:26:57 -06:00
John Safranek
e9e7845974
v1.4.3 Release Prep
2019-10-31 10:37:37 -07:00
JacobBarthelmeh
f4c237a09a
Merge pull request #217 from ejohnstown/fix-script
...
fix get-put test so it will run on Linux and Cygwin
2019-10-31 11:26:24 -06:00
John Safranek
03d4376ec0
fix get-put test so it will run on Linux and Cygwin
2019-10-31 10:05:47 -07:00
Chris Conlon
c11b87c170
Merge pull request #216 from ejohnstown/release-fix-kex
...
KEX fixes
2019-10-30 14:21:47 -06:00
John Safranek
a4a78605ba
KEX fixes
...
1. Changed the KEX buffers to use a macro to set their value based on a 3072-bit DH key.
2. Fixed the selection of the KEX type string sent to the peer in the KEX Init message.
2019-10-30 12:05:03 -07:00
Chris Conlon
f256aed00b
Merge pull request #215 from ejohnstown/release-fixes
...
Release fixes
2019-10-30 09:42:21 -06:00