Commit Graph

1130 Commits (dadccc88fffb4ad9c20ada5dacb9043d6c195df4)

Author SHA1 Message Date
John Safranek dadccc88ff
Merge pull request #400 from dgarske/fips
Fixes for building with FIPS
2022-04-04 16:39:55 -07:00
David Garske 76ba904819 Fixes for all FIPS 140-3 cases. 2022-04-04 16:27:23 -07:00
David Garske fba8e78e79 Fix for building with older FIPS. 2022-04-04 11:32:17 -07:00
John Safranek fd77d6f61a
Merge pull request #399 from anhu/scp_test
Add tests for scp, even empty file transfer.
2022-03-30 15:35:25 -07:00
Anthony Hu bca1ac4ed2 Generate and clean up empty file. 2022-03-28 11:51:53 -04:00
David Garske 509851e64e
Merge pull request #398 from ejohnstown/status
Echoserver SFTP status update
2022-03-25 14:45:56 -07:00
John Safranek fa2123dbfc
Merge pull request #397 from dgarske/cross_fips
Fixes for cross compiling with FIPS
2022-03-25 14:31:43 -07:00
Anthony Hu 9dc6366178 Stop over-zealously checking application return code. 2022-03-25 10:55:25 -04:00
Anthony Hu f589ea275d Add tests for scp, even empty file transfer. 2022-03-25 10:23:11 -04:00
John Safranek b94349bbc5
Echoserver SFTP status update
1. In wolfsftp, treat all the status codes the same when trying to read.
2. In the echoserver, treat all the status codes the same in the
   sftp_worker.
2022-03-24 16:55:12 -07:00
David Garske 0f22329187 Fix for FIPS 140-3 on ECC private key use. Fix for IPv6 with scpclient. Wrong macro for fall through. Add support for flushing file IO using `WOLFSCP_FLUSH`. 2022-03-24 13:34:26 -07:00
David Garske eae46da927
Merge pull request #396 from anhu/empty_file
Bugfix: erroring out on copying empty file
2022-03-24 13:29:55 -07:00
Anthony Hu 6c6b405f68 Bugfix: erroring out on copying empty file; don't read if file size is 0. 2022-03-24 15:36:55 -04:00
David Garske 6a893c918e Fixes for cross-compiling. 2022-03-21 16:24:14 -07:00
John Safranek 17008c635e
Merge pull request #394 from anhu/prevent_false_timeout
Clean out the currentFile file name ensuring reset of the timeout value
2022-03-21 15:40:34 -07:00
Anthony Hu 312b9d1d7a
Merge pull request #393 from ejohnstown/sftp-rxd 2022-03-21 17:55:15 -04:00
Anthony Hu e1949d2fd6 Clean out the currentFile file name to ensure reset of the timeout value. 2022-03-21 17:43:51 -04:00
John Safranek 981b8e8b30
SFTP Channel Receive Fix
1. The echoserver's sftp_worker() was treating the WS_CHAN_RXD status as
   an error and failing out. Updated to clear the error status.
2. wolfSSH_SFTP_read() was also treating WS_CHAN_RXD status as an error
   and terminating the transfer. Update to treat like the other status.
2022-03-21 14:39:52 -07:00
JacobBarthelmeh 42d760c288
Merge pull request #392 from ejohnstown/scp-small-buf
Small Buffer wolfSCP
2022-03-17 17:15:13 -06:00
John Safranek b1967829cd
Small Buffer wolfSCP
When using a small file buffer for SCP, there was a combination of file
size and channel window size where SCP would read the remainder of the
file, close it, send a small message because the peer's window was full,
then try reading the file again. The change keeps trying to send if the
file buffer still has data.
(ZD #13808)
2022-03-17 15:21:13 -07:00
John Safranek d7b453ba1f
Merge pull request #389 from kojo1/zd13769
Missing return value
2022-03-03 08:59:12 -08:00
John Safranek c3814cd92f
Merge pull request #391 from dgarske/kcapi
Fixes for use with KCAPI
2022-03-03 08:59:00 -08:00
Takashi Kojo cefde5f4d3 Missing return value 2022-03-03 10:21:12 +09:00
David Garske 6162cd1181 Fixes for building without RSA or ECC. 2022-02-28 12:48:22 -08:00
John Safranek 7e28ad03f1
Merge pull request #386 from miyazakh/zd13620
fix handling sent data sz when its size is greater than peer max packet size
2022-02-28 10:53:12 -08:00
Kaleb Himes 574f8a5a5f
Merge pull request #390 from haydenroche5/visual_studio
Update expected wolfSSL paths on Windows.
2022-02-25 15:39:06 -07:00
Hayden Roche 78414aa6ec Update expected wolfSSL paths on Windows. 2022-02-25 10:06:42 -08:00
Hideki Miyazaki d080111157
fix handling sending data if the data size is greater than peer max packet size 2022-02-17 13:36:16 +09:00
Anthony Hu fc14aef6f7
Merge pull request #385 from ejohnstown/readme
Thanks John!!
2022-02-04 16:43:33 -05:00
John Safranek a813f9c93a
Readme Update
1. Changed "ssh_client" to "ssh". This example is intended to use the
   usual ssh client.
2. Changed a later section header to be different from an earlier one.
   (examples)
3. Added some backticks around some short phrases that are meant to be
   commands or something included in code.
4. Added some links.
5. Update the build directions.
6. A bunch of lines were longer than 80 columns or got really close.
   These were rewrapped to be a little shorter. Whitespace only.
7. Remove non-markdown README file.
2022-02-04 13:26:17 -08:00
David Garske 8dfa04776c
Merge pull request #384 from ejohnstown/fix-msg-print
Fix SCP Extended Data Print
2022-02-01 15:03:36 -08:00
John Safranek 4354edc945
Fix SCP Extended Data Print
The OSS-Fuzz detected a possible use of uninitialized data. Since it is
text output for the STDERR of the peer, make sure the string is actually
null terminated before fprintf to stderr.
2022-02-01 14:14:04 -08:00
David Garske 5347ff712b
Merge pull request #383 from ejohnstown/config-h
Fixes when compiling with an old version of GCC
2022-01-27 11:27:11 -08:00
John Safranek bd312c34f2
Old Compiler Warning Cleanup (GCC 4.0.2)
1. client.c: It was warning a recommendation to tag the function
   `readInput()` as non-return. Changed the err_sys() calls to
   `fprintf(stderr, ...)` and then return from the function.
2. internal.c: In functions `DoKexInit()` and
   `DoUserAuthRequestPublicKey()`, initialized a couple variables that
   could be used uninitialized.
3. wolfsftp.c: Fixed a variable that was shadowing a global label.
4. wolfsftp.c: In function `wolfSSH_SFTP_RecvFSTAT()`, initialized a
   variable that could be used uninitialized.
5. scpclient.c: The command line argument was read into a char value
   assuming it was signed, which is usually true. On the PowerPC this
   value is unsigned. Promoted it to int to match the other tools.
2022-01-27 10:36:51 -08:00
John Safranek ba42d6f732
Fix missing pread() and pwrite()
1. configure.ac: Check that the DECLs for `pread()` and `pwrite()` exist
   in unistd.h.
2. port.c: If `pread()` or `pwrite()` aren't available, use the local
   versions that are wrappers around `seek()` and `read()` and
   `write()`.
2022-01-27 10:36:42 -08:00
John Safranek 796423bfac
Update tests and examples to include config.h
1. All the sources for the tests and examples did not have an include
   for config.h. This fixed some inconsistent builds with an older
   version of gcc.
2. Moved config.h from the src directory to the top level of the repo
   directory.
2022-01-26 15:06:07 -08:00
John Safranek 51638545d4
Merge pull request #381 from kojo1/kexDh
macro guarde for SendKexDhGexRequest
2021-12-16 17:02:02 -08:00
Takashi Kojo a8dee72390 macro guarde for WOLFSSH_NO_DH_GEX_SHA256 2021-12-15 10:25:36 +09:00
Daniele Lacamera d6034180eb
Merge pull request #380 from ejohnstown/fixes
Remove redundant free
2021-12-06 23:32:10 -08:00
John Safranek e582d29f33
Remove redundant free
1. Free the handshake hash right after final.
2. Change GenerateKeys() to take a hashId as a parameter.
3. Clear the handshake hash ID right after freeing.
4. Free the handshake hash if the hash ID isn't NONE in
   HandshakeINfoFree.
2021-12-06 10:30:20 -08:00
John Safranek 15b62dd26b
Merge pull request #378 from JacobBarthelmeh/memory
small stack optimizations
2021-12-03 10:23:09 -08:00
Sean Parkinson 7ad7637edf
Merge pull request #379 from JacobBarthelmeh/fuzz
fix check on RSA import size
2021-12-02 10:04:36 +10:00
Jacob Barthelmeh 7dd9d1fa2e fix check on RSA import size 2021-12-01 15:54:26 -07:00
Jacob Barthelmeh 6b4bd138af small stack optimizations 2021-11-19 16:14:30 -07:00
JacobBarthelmeh f51fb9c535
Merge pull request #377 from ejohnstown/window-adj
Window Adjust Fix
2021-11-09 14:49:48 -08:00
John Safranek 49bd5d6988
Add window updates to Channel reads and ChannelId reads. 2021-11-09 10:15:45 -08:00
JacobBarthelmeh ed97707a9c
Merge pull request #375 from ejohnstown/stderr
wolfSCP and STDERR
2021-11-05 04:52:50 +07:00
John Safranek caedd5339c When scp receives a string in STDERR, print it out. 2021-11-04 14:45:34 -07:00
John Safranek bb6e6e2ba8
Merge pull request #374 from JacobBarthelmeh/release 2021-11-04 13:39:39 -07:00
Jacob Barthelmeh ba99ddda68 run license update script 2021-11-04 13:11:53 -06:00