Commit Graph

382 Commits (68e6d8308ba4c5042cff03336f23b237442846c5)

Author SHA1 Message Date
Jacob Barthelmeh 8601a73026 sanity check that handshake information can be used 2018-07-02 15:23:14 -06:00
Jacob Barthelmeh a631cf5794 add SCP functions to api tests 2018-07-02 12:04:00 -06:00
Jacob Barthelmeh 2c4bca35e0 sftp test script added 2018-07-02 12:03:48 -06:00
Jacob Barthelmeh f348629f06 better thread saftey with handle list 2018-06-29 16:24:02 -06:00
Jacob Barthelmeh b0b659a8e5 remove print statement 2018-06-29 15:40:32 -06:00
Jacob Barthelmeh 8baf943527 try and clean up any open handles on cleanup 2018-06-29 15:35:42 -06:00
Jacob Barthelmeh 2f826aadeb clang warnings and static analysis 2018-06-29 09:31:58 -06:00
Jacob Barthelmeh e47427c484 fix when reading directory
change from NO_WOLFSSL_DIR to NO_WOLFSSH_DIR

add chmod feature

changes for sftp port

file attributes and SFTP version

no exit on echoserver and revert scp
2018-06-29 09:19:40 -06:00
John Safranek 1342f25ce6
Merge pull request #79 from JacobBarthelmeh/fuzz
sanity check on arguments with debug
2018-06-19 09:13:25 -07:00
Jacob Barthelmeh c7b2dfbf1d sanity check on arguments with debug 2018-06-14 17:17:07 -06:00
JacobBarthelmeh cdc153bc42
Merge pull request #78 from ejohnstown/tabs
a few whitespace fixes
2018-06-14 17:07:08 -06:00
John Safranek fbdff7f186 a few whitespace fixes 2018-06-14 14:30:40 -07:00
John Safranek 0cdb57b92e
Merge pull request #73 from JacobBarthelmeh/sftp-nuc
SFTP/SCP on Nucleus
2018-06-14 14:18:20 -07:00
Jacob Barthelmeh 522d93add3 scp nucleus port
fix for uninitialised value

fix compile time warnings

scp only build and handle file size of 0

macro guard on sftp build

adjust directory pointer on desktop build

close connection still on fail and update derefrence of dir with nucleus

ssh only build for nucleus
2018-06-13 16:23:08 -06:00
Jacob Barthelmeh 6d434d0030 initial port to Nucleus
update example on Nucleus

add code sourcery IDE project

fix naming of IDE project files

clean up opendir for fail case

fix for build warnings

add fstat and fixes for nucleus port

update FALL_THROUGH case

add null terminator and more memory free's

fix for scan build warnings

fix warning of no return value

better bounds checking

better path cleaning

fix return values in header file

clean path before access

remove trailing delimiter from clean path
2018-06-13 09:44:54 -06:00
JacobBarthelmeh 6261bb7d98
Merge pull request #77 from cconlon/certstest
fix spacing on certs_test.h license header
2018-06-13 09:44:02 -06:00
Chris Conlon fb85d175df fix spacing on certs_test.h license header 2018-06-12 15:58:07 -06:00
JacobBarthelmeh 59392a9330
Merge pull request #76 from cconlon/devbranch
bump dev version to 1.2.2
2018-06-12 14:48:06 -06:00
Chris Conlon 0745013d67 bump dev version to 1.2.2 2018-06-12 14:29:00 -06:00
Chris Conlon c9f35a3ce9
Merge pull request #75 from JacobBarthelmeh/testing
additional free's and memory management
2018-06-12 14:18:45 -06:00
Jacob Barthelmeh 0fb9a76e54 alter error value for rename failure 2018-06-12 13:30:56 -06:00
Jacob Barthelmeh f80617f43c return value with write to file error 2018-06-12 13:29:58 -06:00
Jacob Barthelmeh 44585908f1 additional free's and memory management 2018-06-12 13:27:38 -06:00
JacobBarthelmeh d3acd4839b
Merge pull request #74 from cconlon/scanbuild
fix scanbuild warning in SendChannelRequest()
2018-06-12 13:18:33 -06:00
Chris Conlon 37e3250164 fix scanbuild warning in SendChannelRequest() 2018-06-12 10:51:17 -06:00
JacobBarthelmeh 4415d2e52f
Merge pull request #71 from cconlon/scp
scp: update error propogation, add WOLFSSH_SCP_NEW_REQUEST state to send callback
2018-06-07 09:46:11 -06:00
JacobBarthelmeh 0fc6f343b0
Merge pull request #72 from ejohnstown/static-fixes
fix a handful of clang static analysis warnings
2018-06-07 09:38:46 -06:00
John Safranek 3ab6f4fbd1 reroll the error string test to check for unknown string and to count the inner loop correctly 2018-06-06 16:02:39 -07:00
John Safranek 56f471ffc9
Merge pull request #61 from JacobBarthelmeh/sftp-squash
SFTP implementation
2018-06-06 15:33:30 -07:00
Jacob Barthelmeh bebc660309 fix for static analysis warning 2018-06-06 16:26:58 -06:00
John Safranek 8477c4acd6 fix a handful of clang static analysis warnings 2018-06-06 15:04:59 -07:00
Chris Conlon a38fae858a add WOLFSSH_SCP_NEW_REQUEST state to scp to allow for application to abort transfer 2018-06-05 10:52:46 -06:00
Chris Conlon 7cd616cb8c propogate scp errors to application for wolfSSH_get_error 2018-06-05 09:51:25 -06:00
Jacob Barthelmeh a26bace432 fix size values on string cat 2018-06-04 10:29:08 -06:00
Jacob Barthelmeh dfdb2b1335 change return value for SFTP connection and clean up after rebase 2018-06-01 17:22:06 -06:00
Jacob Barthelmeh 2b934bd941 update error values and fix [l]stat status packet 2018-06-01 17:20:54 -06:00
Jacob Barthelmeh 0194784e6d use XSTRNCMP and remove debug code used during devel 2018-06-01 17:20:54 -06:00
Jacob Barthelmeh b467a3073c able to establish SFTP connection and start of adding commands (still in devel, has debug print statements)
refactor sending SFTP packets

try to make internal function names more clear, add comments, and update sftp example

add parsing names and most of attributes

add SFTP debug tag

add mkdir with SFTP

start of framework for get

add get command and keep track of working directory

base case of put command

basic sftp rename command

basic sftp rm command

initial basic rmdir command added

initial basic reget/reput commands

clean up absolute path to working directory

move location of sftp client app and more testing

add more comments and make code more readable

cast on values and add exit

adjust macro names and test make dist

adjust gitignore and macro names

gcc-7 build

revert nameListIdx increment to find ssh-rsa

more comments

fix for possible use uninitialized warning

initial SFTP accept

send status packet and start of realpath

server side mkdir

initial process of stat and lstat packets

initial processing of rmdir packet

basics for server handling SFTP get command

initial commit for server handling basic put command

initial handling of receiving remove packet

initial server handling of rename packet

initial implementation of handling directory packets

better checking on return values

set correct return value on successful read

additional sanity checks on user inputs

make send and read packet API name more clear

cast for warning building with clang
2018-06-01 17:20:54 -06:00
Chris Conlon 38d84d858d
Merge pull request #70 from ejohnstown/logging
Logging Update
2018-06-01 16:44:35 -06:00
John Safranek cc88322585 Logging Update
1. Instead of replacing NO_TIMESTAMP, deprecate the old name and convert it to WOLFSSH_NO_TIMESTAMP.
2018-06-01 15:42:47 -07:00
John Safranek 5e67f2f027 Logging Update
1. Added new error codes for being unable to match ciphers with peer.
2. Whitespace updates in the error header.
3. Added disable flag to leave out the default log callback so user can supply own custom callback.
2018-06-01 15:00:40 -07:00
JacobBarthelmeh 99a8f00061
Merge pull request #67 from ejohnstown/fix-fuzz
Fix Fuzz
2018-06-01 13:36:00 -06:00
John Safranek a399617780 Fuzz Test Fixes
1. Fix a possible underflow error when reading the F value from the KEX DH Reply message.
2018-06-01 11:05:13 -07:00
John Safranek 9f968498e4
Merge pull request #56 from cconlon/scp
SCP Server Support
2018-06-01 10:39:24 -07:00
Chris Conlon e2f08f40d8 add scp to README.md 2018-05-31 13:45:55 -06:00
Chris Conlon a6e8c59b97 scp modifications from embedded port 2018-05-31 13:45:55 -06:00
Chris Conlon 5a8642673b free scp file buffer if existing or upon error when reading 2018-05-31 13:45:55 -06:00
Chris Conlon 871a3fa719 update scp error codes and strings 2018-05-31 13:45:54 -06:00
Chris Conlon 8b6ac82158 update include.am files for scp 2018-05-31 13:45:54 -06:00
Chris Conlon 2151229eb4 switch SCP_USER_CALLBACKS to WOLFSSH_SCP_USER_CALLBACKS 2018-05-31 13:45:54 -06:00