Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Inline strlen() call to reduce/simplify code. | jsing | 2017-01-12 | 1 | -5/+2 |
| | |||||
* | Inline tls_get_new_cb_bio() from the only place that it gets called, | jsing | 2017-01-12 | 1 | -22/+11 |
| | | | | | simplifying the code. Also check the provided read and write callbacks before assigning to the context. | ||||
* | Simplify the TLS callback BIO code - a pointer to the tls context can be | jsing | 2017-01-12 | 1 | -66/+7 |
| | | | | | | | stored directly in bio->ptr, rather than allocating and deallocating an intermediate struct. Diff from Marko Kreen <markokr at gmail dot com> - thanks! | ||||
* | If tls_get_new_cb_bio() fails, an error will already be set. | jsing | 2017-01-12 | 1 | -5/+2 |
| | |||||
* | If no callbacks are specified, return after setting an error rather than | jsing | 2017-01-12 | 1 | -2/+4 |
| | | | | | | continuing on. Also noticed by Marko Kreen. | ||||
* | Assign and test, as is consistent with the rest of the libtls code. | jsing | 2016-11-04 | 1 | -7/+4 |
| | |||||
* | Use a consistent name for struct bio_cb * variables. | jsing | 2016-11-04 | 1 | -6/+6 |
| | |||||
* | Rename struct bio_cb_st to struct bio_cb. | jsing | 2016-11-04 | 1 | -8/+8 |
| | |||||
* | Do not cast a pointer to a struct, to a char * when assigning to a void *. | jsing | 2016-11-04 | 1 | -2/+2 |
| | |||||
* | Use a consistent name for a BIO *, rather than having four different names | jsing | 2016-11-04 | 1 | -49/+51 |
| | | | | in the same file. | ||||
* | There's not much point having three static functions that do a cast and | jsing | 2016-11-04 | 1 | -33/+6 |
| | | | | | assign a pointer, when we can just inline the three and do one cast followed by three pointer assignments. | ||||
* | Do not mix declarations and code. | jsing | 2016-11-04 | 1 | -3/+7 |
| | |||||
* | Rename the internal bio related functions so that they have a common | jsing | 2016-11-04 | 1 | -22/+22 |
| | | | | prefix. Makes the code more readable and removes shadowing. | ||||
* | There's not much point in casting a void * to a specific type just before | jsing | 2016-11-04 | 1 | -4/+2 |
| | | | | | | calling free(). ok beck@ ingo@ | ||||
* | Handle the FLUSH BIO cntl, that happens at the end of SSL handshakes. | bcook | 2016-09-14 | 1 | -1/+2 |
| | | | | from Tobias Pape | ||||
* | Allow callback read/write functions to set TLS_WANT_POLLOUT/POLLIN. | bcook | 2016-09-14 | 1 | -3/+21 |
| | | | | from Tobias Pape | ||||
* | Sort headers and use the installed tls.h, rather than the local one. | jsing | 2016-09-04 | 1 | -5/+5 |
| | |||||
* | $OpenBSD$ tag | jsing | 2016-09-04 | 1 | -1/+1 |
| | |||||
* | Add callback-based interface to libtls. | bcook | 2016-09-04 | 1 | -0/+224 |
This allows working with buffers and callback functions instead of directly on sockets or file descriptors. Original patch from Tobias Pape <tobias_at_netshed.de>. ok beck@ |