summaryrefslogtreecommitdiff
path: root/sys/src/9/port/devtls.c
AgeCommit message (Collapse)Author
2021-11-09devtls: reject zero length records (thanks sigrid)cinap_lenrek
zero length record causes ensure() todo nothing, while qgrab() assumes there is at least one buffer in the queue and would dereference the nil buffer.
2021-10-16devtls: implement "hangup" ctl messagecinap_lenrek
This makes devtls connection directories compatible to hangup function (see dial(2)).
2021-09-25devtls: fix bwrite memory leak when channel stops being opencinap_lenrek
tlsbwrite() would call checkstate() before calling tlsrecwrite() to make sure the channel is open. however, because checkstate() only raises the error, the Block* passed wont be freed and would result in a memory leak. move the checkstate() call inside tlsrecwrite() to reuse the error handling that frees the block on error.
2019-01-22devtls: remove static "already" flag in tlsinit(). this function is only run ↵cinap_lenrek
once.
2017-12-28devtls, devssl: avoid ~0UL comparsion (from drawterm)cinap_lenrek
2016-11-17devtls: remove unused get32() functioncinap_lenrek
2016-09-11kernel: replace various custom random iv buffer filling functions with calls ↵cinap_lenrek
to prng()
2016-08-27devtls: allocate cipher states in secret memorycinap_lenrek
2016-07-24devtls, devssl: make sure channel has ORDWR mode and is not a mount chan on ↵cinap_lenrek
fdtochan()
2016-05-11devssl, devtls: fix permission checkscinap_lenrek
2016-03-28devtls: print the path of the underlying chan in status filecinap_lenrek
to figure out what network connection a particular tls conversation refers to, we add the path of the underlying we send the encrypted tls traffic over in the status file, example: term% grep -n '^Chan:' '#a'/tls/*/status #a/tls/0/status:7: Chan: /net/tcp/6/data #a/tls/1/status:7: Chan: /net/tcp/0/data
2016-03-23devtls: zero secret information before freeing, cleanupcinap_lenrek
2016-03-23add portable AES-GCM (Galois/Counter Mode) implementation to libsec and devtlscinap_lenrek
2016-03-09devtls: fix wrong iounitcinap_lenrek
devtls writes are only atomic up to MaxRecLen as this is the maximum payload size we put in a record application message.
2016-01-07format pointer subtraction results with %zd instead of %ld (for long -> ↵cinap_lenrek
intptr on amd64)
2015-12-21tls: implement chacha20/poly1305 aead cipher suitscinap_lenrek
2015-10-28devtls: reject SHA2_256 mac for SSL, but TLS is finecinap_lenrek
sha256 is only defined for TLS1.2, however, technically, theres no reason not to use it in TLS1.0/TLS1.1. the choice is up to tlshand and pushtls, not the kernel.
2015-08-27devtls: add sha256 macmischief
2015-08-25fix fuckupglenda
2015-08-25import E script from bell labsmischief
2015-08-15devtls: TLS1.1 explicit iv supportcinap_lenrek
using nrand() to fill the explicit iv, which isnt great but better than no iv.
2015-06-01devtls: ignore UnrecogniedName (112) alert message (for SNI)cinap_lenrek
2014-09-15devtls: fix typo in debug printcinap_lenrek
2014-02-25devtls: spellingmischief
2013-01-09devtls: fix hmac buffer size for SHA1 hashes (from erik)cinap_lenrek
the buffer isn't big enough for SHA1 hashes, which are larger than MD5 hashes.
2012-12-04devtls: add support for aes_128_cbc and aes_256_cbc (import from sources)cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen