Commit Graph

1645 Commits (7965c97ceb5b0cf9ed5c237b7ab08c9685844e10)

Author SHA1 Message Date
John Safranek 7965c97ceb wolfSSH Client
1. Add scaffold to the build for the wolfSSH client.
2. A little whitespace change in configure.ac.
2023-09-25 09:23:13 -07:00
JacobBarthelmeh a650415476
Merge pull request #582 from danielinux/fix_no_term
Fix compile errors when WOLFSSH_TERM is undefined
2023-09-25 09:45:18 -06:00
John Safranek e0ba0cb728
Merge pull request #589 from gojimmypi/init-vars 2023-09-24 13:52:44 -07:00
gojimmypi 56ca2d636a WOLFSSH_UNUSED instead of (void)var 2023-09-23 08:38:44 -07:00
John Safranek 47ecaf6d88
Merge pull request #591 from JacobBarthelmeh/x509 2023-09-22 16:33:55 -07:00
John Safranek 481c334a39
Fix No Term
1. Widened the scope of a couple of the guards for WOLFSSH_TERM.
2. Added a pthread_join for one of the threads in the example client.
2023-09-22 16:26:23 -07:00
JacobBarthelmeh 08345797d8 add x509v3 options to ext canned key algo names list 2023-09-22 13:06:44 -07:00
JacobBarthelmeh ec447f1b93
Merge pull request #590 from ejohnstown/term-tweaks
Term Tweaks
2023-09-22 08:20:56 -06:00
John Safranek 77290e630d
Merge pull request #587 from JacobBarthelmeh/vs_build 2023-09-21 15:54:05 -07:00
John Safranek 5fa72591b5
Term Tweaks
1. Add check for IUTF8 and forward.
2. Changed the TTYSet() for a char and a word version. For chars that
   were -1, they were getting set as a word.
3. In DoChannelRequest(), read the modes as a string reference.
2023-09-21 15:50:16 -07:00
gojimmypi 2d9292bfa5 initialize internal.c vars for espressif/cmake 2023-09-20 18:40:11 -07:00
JacobBarthelmeh 827d901f52 add sanity check that pid file is not null 2023-09-20 16:32:50 -06:00
JacobBarthelmeh c349510cc3 add include of process.h for _getpid and add a cast to fix warning 2023-09-20 13:29:33 -06:00
JacobBarthelmeh 12b7c3af93 add Windows version of getpid 2023-09-20 11:16:35 -06:00
David Garske 74ca7161a5
Merge pull request #585 from ejohnstown/term
Term Update
2023-09-19 12:05:32 -07:00
John Safranek 5b094d6f43
Term Update
1. Change GetTerminalSize() to GetTerminalInfo().
2. Add the term variable to the things GetTerminalInfo() looks up.
3. Return the actual value of the environment variable TERM to the
   server. If one isn't present, default to "xterm".
4. Clean up the whitespace in SendChannelTerminalRequest().

Misc other changes:
1. Cleanup whitespace in the recently added function
   SendChannelOpenFail().
2. Add labels to the parameters in the prototype for
   SendChannelOpenFail().
3. Remove the CR addition for Windows in the example client. Causes the
   enter key to double-strike.
2023-09-19 11:40:23 -07:00
David Garske 5af49f2f9e
Merge pull request #584 from ejohnstown/init-pty-size
Initial PTY Window Size
2023-09-18 15:37:18 -07:00
John Safranek cf840c82b0
Initial PTY Window Size
1. Changed gathering the PTY window size from being OS dependent to
   availability of ioctl.h so both Linux and MacOS would start with the
   correct size.
2. Added a check to configure for sys/ioctl.h.
3. Changed GetTerminalSize() so it returns the pix width and height as
   well.
2023-09-18 15:05:33 -07:00
David Garske 417388c72a
Merge pull request #583 from ejohnstown/pem-keys
Read PEM Keys
2023-09-18 12:05:18 -07:00
John Safranek 07e760848f
Read PEM Keys
1. Update wolfSSH_ReadKey_buffer() to decode PEM keys.
2. Add detection of PEM files to wolfSSH_ReadKey_file().
3. Add parameter labels to the prototypes of the ReadKey functions.
2023-09-18 11:46:47 -07:00
Daniele Lacamera 7ff76751f6 Fix compile errors when WOLFSSH_TERM is undefined 2023-09-18 08:23:30 +02:00
John Safranek 79bc747b46
Merge pull request #551 from falemagn/pull-reqs/cca01a4_WOLFSSH_FTP_FSETSTAT 2023-09-15 15:15:16 -07:00
JacobBarthelmeh ef394908a7
additional sanity check on input buffer size 2023-09-15 15:35:35 -06:00
JacobBarthelmeh d84e3b3f4b
Merge branch 'master' into pull-reqs/cca01a4_WOLFSSH_FTP_FSETSTAT 2023-09-15 15:33:59 -06:00
JacobBarthelmeh c8f188e13c
Merge pull request #581 from ejohnstown/term-window-size
Fix Terminal Window Size Update
2023-09-15 11:51:05 -06:00
JacobBarthelmeh e3e65f0139
Merge pull request #580 from ejohnstown/mac-sem
Semaphores
2023-09-15 11:47:25 -06:00
John Safranek f8ac5285bf
Fix Terminal Window Size Update
1. Change sizeof a pointer to a string to WSTRLEN(). It was only copying
   part of the string "window-change" to the channel status message.
2023-09-15 10:45:12 -07:00
John Safranek 526ade03df
Linux-Semaphore
1. Made a similar change for Linux semaphores.
2. Moved the check for the quit flag in the windowMonitor.
2023-09-14 16:46:06 -07:00
John Safranek 503e1bb288
Mac-Semaphore
1. Add quit parameter to the example client's thread_args structure.
   This will be used to let the windowMonitor thread know the
   application is quitting.
2. If the windowMonitor's quit flag is set, it will exit and not call
   wait again.
3. Join the windowMonitor thread rather than cancel it.
2023-09-14 16:30:44 -07:00
John Safranek 33fd85c90f
Merge pull request #579 from JacobBarthelmeh/vs_build
fix DLL VS build configurations for wolfsshd and wolfsftp-client proj…
2023-09-14 15:44:17 -07:00
JacobBarthelmeh 39983a2c6c revert header on sln 2023-09-14 14:54:11 -06:00
JacobBarthelmeh e397f9983f remove DDL typo and update wolfSSHd for DLL Release 2023-09-14 14:49:47 -06:00
JacobBarthelmeh e474af55b2
Merge pull request #578 from ejohnstown/nonblock-client
Nonblock Client Login Failure
2023-09-13 16:42:02 -06:00
JacobBarthelmeh 61fdf5cb0b fix DLL VS build configurations for wolfsshd and wolfsftp-client projects 2023-09-13 16:33:36 -06:00
John Safranek f35a92fd48
Nonblock Client Login Failure
When the example client is using non-blocking sockets, sometimes they
don't block. The monitor thread on the socket wasn't handling
WS_WANT_READ explicitly, and treated it as a fatal error. It should be
reset to WS_SUCCESS.
2023-09-13 09:26:29 -07:00
John Safranek c900ef4698
Merge pull request #575 from JacobBarthelmeh/sshd-windows 2023-09-12 13:55:23 -07:00
JacobBarthelmeh a60150512e add parameter names to function declaration 2023-09-12 09:59:01 -07:00
JacobBarthelmeh 720adb1a08 fix WOLFSSH_API set for wolfSSH_SetTerminalResizeCtx 2023-09-11 08:47:40 -07:00
John Safranek 37367048ae
Merge pull request #574 from JacobBarthelmeh/sshd 2023-09-07 13:27:04 -07:00
John Safranek eb7d0533f1
Merge pull request #572 from JacobBarthelmeh/print 2023-09-07 13:24:28 -07:00
John Safranek dd7c17afec
Merge pull request #573 from JacobBarthelmeh/fuzzing 2023-09-07 13:23:49 -07:00
JacobBarthelmeh 57519c6a54
remove extra newline in debug message 2023-09-07 13:28:43 -06:00
JacobBarthelmeh aa6ba94206 keep permissions rasied when binding to socket 2023-09-07 09:19:48 -07:00
JacobBarthelmeh 999154677e sanity check on first read with opcode 2023-09-06 12:45:23 -07:00
JacobBarthelmeh 6e5b3c00d2 use WLOG for debug messages when checking peer IP address 2023-09-06 11:03:45 -07:00
JacobBarthelmeh 48fbd9acf9
Merge pull request #571 from ejohnstown/partial-success
Partial Success
2023-09-01 16:13:42 -06:00
John Safranek 36c170445f
Partial Success
User authentication partial successes are controlled by the user
authentication callback. If the public key is accepted by the user
authentication callback, but considers it a partial success, the
signature is still checked and if successful, is still treated as a
failure in the response message.

1. Add new user authentication callback return value of
   WOLFSSH_USERAUTH_PARTIAL_SUCCESS.
2. Update the password user authentication function to parallel the
   public key version more. Treat failure and partial success similarly.
3. Check the public key user authentcation callback for partial success.
   In that case, still check the signature.
2023-09-01 12:00:45 -07:00
JacobBarthelmeh 03ec8fb603
Merge pull request #570 from ejohnstown/wmacros
WMACRO Update
2023-09-01 10:45:52 -06:00
John Safranek 491f3dce57 WMACRO Update
1. Fix missing updates to wolfSSHd.
2. Fix missing update to scp.
2023-09-01 09:34:26 -07:00
John Safranek 0126528c15
Merge pull request #556 from falemagn/pull-reqs/f4021bb_All_the_filesystem-related_W_macros_accept_a_filesystem_context_pointer_as_first_parameter 2023-09-01 09:33:12 -07:00