summaryrefslogtreecommitdiffhomepage
path: root/packet.c
AgeCommit message (Collapse)Author
2016-03-16fix empty C prototypesFrancois Perrad
2016-01-01more hard tabFrancois Perrad
2015-12-31refactor indentation with hard tabFrancois Perrad
2015-05-02Fix no-writev fallbackMatt Johnston
2015-03-20Make main socket nonblocking. Limit writequeue size.Matt Johnston
2015-03-20avoid malloc for iovecMatt Johnston
2015-03-01allocate buffer and data in a single allocationMatt Johnston
--HG-- branch : nocircbuffer
2015-03-01A bit of a bodge to avoid memcpy if zlib is disabledMatt Johnston
--HG-- branch : nocircbuffer
2015-02-20Move generic network routines to netio.cMatt Johnston
--HG-- branch : fastopen
2015-02-19In theory TFO should work. Needs platform cleanup and testingMatt Johnston
--HG-- branch : fastopen
2015-02-18generalise write iovec handlingMatt Johnston
--HG-- branch : fastopen
2015-02-18async connections workingMatt Johnston
--HG-- branch : fastopen
2015-02-18work in progress for async connectMatt Johnston
--HG-- branch : fastopen
2015-01-23 Integrity error (bad packet size %u) negative lengthFedor Brunner
When corrupted packet is received negative length of packet is displayed. (re-apply of pull request #8)
2014-08-06Test for EAGAIN tooMatt Johnston
2014-07-09Make -K keepalive behave like OpenSSH's ServerAliveIntervalMatt Johnston
2014-05-20Be more careful in case a platform doesn't define UIO_MAXIOV nor IOV_MAXMatt Johnston
2014-05-20Limit size of the iovect passed to writev in packet.cRonny Meeus
2014-05-20Print errno information in write_packetRonny Meeus
2014-03-13Add new monotonic_now() wrapper so that timeouts are unaffected byMatt Johnston
system clock changes
2014-03-13Use AUTH_TIMEOUT only before authdone != 1.Yousong Zhou
While at it, fix a few indentations and typo.
2014-02-22A few fixes for cases where compression increases payload sizes, andMatt Johnston
be more precise about maximum channel sizes
2013-11-14rename random.h to dbrandom.h since some OSes have a system random.hMatt Johnston
--HG-- rename : random.c => dbrandom.c rename : random.h => dbrandom.h
2013-11-14use oldstyle commentsMatt Johnston
2013-10-03Constant time memcmp for the hmac and password cryptMatt Johnston
2013-05-08Limit decompressed sizeMatt Johnston
2013-04-04Take transmit and receive keys into use separatelyMatt Johnston
2013-04-03Fix MAC bug which would prevent asymmetric hashesMatt Johnston
2013-04-01Move the more verbose TRACE() statements into TRACE2()Matt Johnston
2013-03-31Try using writev() for writing packets out to tcpMatt Johnston
2013-03-20Fix "-m none" case where an entire packet fits in a block and can beMatt Johnston
read by read_packet_init()
2011-06-07Fix case where "-K 1" would cause a SSH_MSG_IGNORE packet to be sentMatt Johnston
with the wrong encryption key ("bad packet length" symptom) while key exchange was happening. --HG-- extra : convert_revision : f7d27ec094c4aba2a4289c523c722fcb3c3f58ca
2011-02-28- Don't allow setting memLevel since that doesn't work properlyMatt Johnston
- Better handling of the case where compressing makes the data larger (possibly only happens when memLevel is adjusted, but better to be safe) --HG-- extra : convert_revision : b31879a384d3bf8cbcbe2ed731d7d79d49799b1d
2011-02-23Improve capitalisation for all logged stringsMatt Johnston
--HG-- extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2011-02-23Don't reset last_packet_time when we're transmitting SSH_MSG_IGNORE packetsMatt Johnston
(from keepalives) --HG-- extra : convert_revision : a46ca9204de0df58d8701df0d79b6b8ec601b9ce
2009-09-01Rearrange getaddrstring() etcMatt Johnston
--HG-- extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-07-26- Payload length doesn't include macsize.Matt Johnston
--HG-- extra : convert_revision : 98ac17a573ab350cbd6e358b3943237d2ad5c9cf
2009-03-03Remove extraneous debuggingMatt Johnston
--HG-- extra : convert_revision : 58d53a027555e98d6d274b4659d38211eea7ad11
2009-03-01- Get rid of decryptreadbuf, just decrypt in-place with readbufMatt Johnston
- Share make_mac function for both packet creation and validation - Split recv/trans parts of key_context into their own structures --HG-- extra : convert_revision : 043bc598c76ed43625987e6937e32238f7ed6240
2009-03-01Encrypt in-place, avoid an extra mallocMatt Johnston
--HG-- extra : convert_revision : 981e3e4b44e6fdc8537775518e898a33e76a38db
2009-02-26merge of 'e1c100e6366c5d607af08f4abdbb0f4281df4fa9'Matt Johnston
and 'fe8161b0698c9816b98f79e3cab2b9d59f2be71b' --HG-- extra : convert_revision : 23e1a99e40fc3baad5216b2a7e7318f8243f86a3
2009-02-26disapproval of revision 'a101cbd046507cf723e6362a49196dbd4b924042'Matt Johnston
--HG-- extra : convert_revision : e1c100e6366c5d607af08f4abdbb0f4281df4fa9
2009-02-26merge of 'a101cbd046507cf723e6362a49196dbd4b924042'Matt Johnston
and 'c8e1b84cfe874887ad7df0dd95a00de46dbc0136' --HG-- extra : convert_revision : fe8161b0698c9816b98f79e3cab2b9d59f2be71b
2009-02-26- Try to write out as much as we canMatt Johnston
--HG-- extra : convert_revision : a101cbd046507cf723e6362a49196dbd4b924042
2009-02-25- Don't be dumb and encrypt/decrypt in a while() loop - why did I do this??Matt Johnston
--HG-- extra : convert_revision : c8e1b84cfe874887ad7df0dd95a00de46dbc0136
2008-11-07Idle timeout patch from Farrell Aultman. Needs testing, unsure if serverMatt Johnston
code works --HG-- extra : convert_revision : ff66e05ae040561110af70114bf83f11ed528f05
2008-09-29- Add Counter Mode supportMatt Johnston
--HG-- extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-29Add support for zlib@openssh.com delayed compression.Matt Johnston
Are still advertising 'zlib' for the server, need to allow delayed-only as an option --HG-- extra : convert_revision : 319df675cc3c9b35a10b7d8357c94f33fdab1a46
2008-09-15- Split main socket var into ses.sock_in/ses.sock_out in preparationMatt Johnston
for -J proxy_cmd option (and some prelim options for that) --HG-- extra : convert_revision : 47cdea9a7d66c553c6f5eec43b899821939d4e4c
2007-08-08Fix delayed packet queue handlingMatt Johnston
--HG-- extra : convert_revision : 53b349938dfae2256e23799fae66edd5fc3e97ee