Commit Graph

1304 Commits (331753c7763256e8cc788724b7b179f19301288c)

Author SHA1 Message Date
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
Jacob Barthelmeh db00600628 fixes for warnings from scan-build 2021-11-04 09:43:53 -06:00
Jacob Barthelmeh 980b9d8f60 prepare for release version 1.4.8 2021-11-04 08:49:22 -06:00
Jacob Barthelmeh d3c80b8fe8 g++ build warning fixes 2021-11-04 00:59:21 -06:00
David Garske d917ec6e8d
Merge pull request #373 from ejohnstown/no-udp
No UDP in test
2021-10-28 10:31:02 -07:00
David Garske 19b3f3ee62
Merge pull request #371 from ejohnstown/size-fix
Size Calculation Fix
2021-10-28 10:30:45 -07:00
John Safranek 10f1840b42 Add WOLFSSL_WOLFSSH to the user_settings. 2021-10-28 09:17:12 -07:00
John Safranek 09dc430d8a Remove reference to `udp` from test.h. 2021-10-28 08:24:57 -07:00
John Safranek 48803774c7
Merge pull request #370 from elms/configure/add_with_wolfssl_flag 2021-10-26 10:57:35 -07:00
Elms 35e5a9bd70 configure: Add `--with-wolfssl` and use `--prefix` to look for wolfSSL 2021-10-26 10:39:12 -07:00
John Safranek c0ba16f1b1
Merge pull request #358 from JacobBarthelmeh/doc 2021-10-26 09:26:14 -07:00
John Safranek c981e525d0
Merge branch 'master' into doc 2021-10-26 09:22:53 -07:00
John Safranek ddd15cb077
Merge pull request #369 from JacobBarthelmeh/sftp 2021-10-26 09:07:21 -07:00
John Safranek 0402caa05c
Moved the calculation for a size into an if-clause where the pointer derefenced is known-good. 2021-10-11 14:06:33 -07:00
Jacob Barthelmeh eda158731d sftp fix for getting attribute header 2021-10-08 10:45:45 -06:00
JacobBarthelmeh cde04a5819
Merge pull request #368 from ejohnstown/fixes
Fixes
2021-10-08 05:43:26 +07:00
John Safranek f95e0995cc
After sending the shutdown messages, client needs to wait for the server to respond before closing its socket. 2021-10-07 15:28:40 -07:00
John Safranek 3c8b2a622a
In the echoserver, added a state check when a channel closes so it doesn't try to check a bad fd. 2021-10-07 15:09:02 -07:00
David Garske 5dca5f1721
Merge pull request #367 from ejohnstown/readme
Update readme.
2021-10-07 11:37:20 -07:00
John Safranek 513313e65e
Update readme. 2021-10-07 11:19:01 -07:00
David Garske a80d60f446
Merge pull request #343 from ejohnstown/fwd-redux
Port Forwarding Update
2021-10-07 09:51:48 -07:00
John Safranek a1f90568ab
Some cleanup for Windows build. 2021-10-06 18:08:04 -07:00
John Safranek fde6ce4550
SSH Port Forwarding Redux
1. Fixed a leak from a commit earlier in this branch.
2. Freed the correct address name when a forwarded connection closes.
3. Only muck about with the childFd when using the shell.
4. Treat the error code WS_CHANNEL_CLOSED as status, not a failure.
2021-10-06 13:24:13 -07:00
John Safranek d66fb26158
Update the echoserver to look up addresses used. 2021-10-06 13:24:05 -07:00
John Safranek 1ad3fc052b
Change the checked error codes to their names. 2021-10-05 19:38:33 -07:00
John Safranek 0dd21f4593
Change portfwd's data buffers to use the define EXAMPLE_BUFFER_SZ for a size. It can be changed at configure time. Use allocated buffers for small stack builds. 2021-10-05 19:38:33 -07:00
John Safranek 061463e604
Changed calls to malloc, free, memcpy, etc. with uses of the wrappers WMALLOC, WFREE, WMEMCPY, etc. 2021-10-05 19:38:33 -07:00