John Safranek
2cf5ad63ac
wolfCrypt
...
1. Add call to wolfCrypt_Init() to wolfSSH_Init().
2. Modify have_wolfssl.m4 to check for wolfCrypt, not wolfSSL.
2016-10-05 10:55:30 -07:00
John Safranek
6561da9ce2
Updates to the data highwater marks for a callback.
2016-10-04 09:55:09 -07:00
John Safranek
7c8801409c
Move the WOLFSSH and WOLFSSH_CTX initializer and free functions from
...
ssh.c to internal.c.
2016-10-04 09:55:09 -07:00
John Safranek
73e4e58795
1. Regroup the session keys into a separate structure.
...
2. Separate sets of keys for client and server.
3. Store generated keys in handshake info record.
4. Copy session keys over when sending and receiving the
New Keys message.
2016-10-04 09:55:09 -07:00
John Safranek
30c4a32611
1. Add accessors for session data high water mark.
...
2. Check transmit and receive against high water mark and log.
2016-10-04 09:55:09 -07:00
John Safranek
1a278fe713
update copyright dates and licensing to GPLv3
2016-07-19 13:44:02 -07:00
John Safranek
1389df80bc
initial multi-channel support
2016-07-14 22:46:06 -07:00
John Safranek
d101f1d537
fix a few stray memory leaks
2016-07-14 12:58:37 -07:00
John Safranek
a275ac59f0
1. Flushed out the authentication callback.
...
2. Added public key authentication.
2016-06-17 14:23:20 -07:00
John Safranek
911ac8c433
1. Adding parsing of publickey authentication data.
...
2. Changed logging of authentication requests.
3. Reply to "none" authentication types with a failure that
has the supported auth type list.
4. Fixed bug where passing payload to the DoUserAuthRequest wasn't
getting the correct payload length.
5. Reordered a couple utility functions.
2016-06-17 14:20:59 -07:00
dgarske
8e3e5a1bf5
Merge pull request #3 from ejohnstown/fixes1
...
Fixes1
2016-06-17 11:29:01 -07:00
John Safranek
597eb9e1ca
when freeing ctx resources, use the correct heap
2016-04-06 10:46:14 -07:00
John Safranek
5eb8b8111a
Use wolfssl/wolfcrypt instead of cyassl/ctaocrypt, add wc_ prefix to wolfcrypt function calls.
2016-04-05 15:42:38 -07:00
John Safranek
0386a3c50f
move shared inline functions to misc file. add configure option to disable inline functions.
2016-04-01 14:40:22 -07:00
John Safranek
564506c038
Make KDF publically accessable. Add KDF test using keys from two successful connections.
2016-03-31 12:10:44 -07:00
John Safranek
4982638781
add ForceZero() and ConstantCompare() to the code
2015-12-09 16:01:23 -08:00
John Safranek
793a19857f
update copyright banner on sources
2015-12-08 13:45:20 -08:00
John Safranek
7a616ffbf5
fix warning about always true comparison
2015-12-08 12:51:43 -08:00
John Safranek
f9fa42e244
1. added in the stream receive function
...
2. example uses the new receive function
2015-01-14 10:53:33 -08:00
John Safranek
d83d9356d2
fixed reference to wrong variable in wolfSSH_stream_send()
2015-01-13 09:35:43 -08:00
John Safranek
21e73bdf88
added some function enter logging
2015-01-07 14:58:19 -08:00
John Safranek
b548720a9a
1. added in the stream send function
...
2. example uses the new send function
3. added in window size update receipt
4. tweaked the accept state machine to actually finish
2015-01-07 13:49:01 -08:00
John Safranek
dab2b248d5
1. Update the accept state machine to account for all the recent
...
messages.
2. Add sending the open channel confirmation.
3. Starting to refine the logging.
2014-12-29 15:11:04 -08:00
John Safranek
89e6d77e10
Updates to wolfSSH_accept()
...
1. Moved SendNewKeys() to SendKexDhReply() so both messages are sent
in the same packet.
2. Accept state machine checks return codes on Send functions.
3. Added a couple new states for some of the Send functions.
2014-12-18 16:01:32 -08:00
John Safranek
10844bfc51
make sure code lines stay within 80 col standard
2014-12-17 15:54:33 -08:00
John Safranek
2ae2d6dcdf
1. Fixed bug with GenerateKey() that didn't take into account secret padding.
...
2. Fixed bug in DoPacket() that didn't increment the peer's packet sequence.
3. Fixed bug in Decrypt() where the AesCbcDecrypt case dropped through into error.
4. Refactoring the accept state machine.
5. Separating client and server block and MAC sizes.
6. Added client MAC checking.
7. Fixed bug where algorithm picking preferred server order over client.
8. Fixed bug where the algorithm list matching was checking out of bounds.
2014-12-10 21:01:22 -08:00
John Safranek
71bcd94c5f
1. Starting to add in the Decryption and MAC Verification.
...
2. Fixed bug in getting the entire packet from the socket.
2014-12-08 21:59:21 -08:00
John Safranek
2d959d7bea
1. Generates the session keys.
...
2. Starting to tie into the bulk encryption and MAC.
2014-09-12 21:00:16 -07:00
John Safranek
c82b4bb3d8
server sends KexDhReply
2014-09-01 19:11:38 -07:00
John Safranek
21db2e1036
almost have KexDhAgree completed
2014-08-31 23:56:27 -07:00
John Safranek
a9ecef7352
90% of KEXDH done
2014-08-28 14:10:02 -07:00
John Safranek
b72c16f8e9
Creates and sends the server KEXINIT msg
2014-08-26 15:43:59 -07:00
John Safranek
67bb1cdbdc
1. Adding the packet building and send functions.
...
2. Fix RNG initializer.
2014-08-23 23:07:12 -07:00
John Safranek
106e349a23
fix wrapper macro usage
2014-08-21 10:55:46 -07:00
John Safranek
d1d9c3da81
Added an RNG to the WOLFSSH object
2014-08-21 10:50:30 -07:00
John Safranek
7e2674c29a
1. Added test certificate and private key.
...
2. Added code to load single certificate and private key from buffers.
2014-08-15 14:20:42 -07:00
John Safranek
f4b1908b17
Refactor the constants.
2014-08-15 11:37:00 -07:00
John Safranek
e6bfa8c131
1. Removed the peerId from handshake record. It'll be added to the key
...
hash directly.
2. Framing in the private key and certificate loading functions.
2014-08-14 22:34:55 -07:00
John Safranek
0feaaab922
Moved the handshake data into its own structure so it can be freed when
...
the handshake completes.
2014-08-13 19:31:59 -07:00
John Safranek
f07f623ad6
Modified the input and output buffers, made them members of the
...
session object, rather than pointers.
2014-08-12 17:21:13 -07:00
John Safranek
8cb5fea384
1. Added a description comment to each C and H file.
...
2. Updated the FSF address in the comments.
2014-08-11 16:19:11 -07:00
John Safranek
bf052f42c9
Added an endpoint type, client or server, to the wolfSSH context
...
constructor. (For future use.)
2014-08-11 14:45:03 -07:00
John Safranek
490fd75fa9
1. Moved error number to string conversion to internal.c
...
2. Removed file error.c
3. Added error code accessor for WOLFSSH objects.
4. Added error string accesor for WOLFSSH objects.
5. Cleaned up the I/O callback prototypes.
2014-08-11 14:29:06 -07:00
John Safranek
a96a764bc0
Moved functions to internal.c that belong there.
2014-08-11 14:03:00 -07:00
John Safranek
e03a1011d2
1. Removed some unneeded functions and data types.
...
2. Added some new data for sequence numbering and for key exchange.
2014-08-11 11:53:45 -07:00
John Safranek
b331ff9cba
fixed buffer issue on receive
2014-07-31 11:28:14 -07:00
John Safranek
1d2e1af069
filling in code
2014-07-28 07:12:54 -07:00
John Safranek
eb82d2bf28
Adding code
2014-07-01 17:27:47 -07:00
John Safranek
749cb6ff90
initial set of files
2014-06-24 14:48:08 -07:00