solanum-vs-hackint-and-char.../librb/src
Aaron Jones c4acd427ac
MbedTLS: Misc backend cleanups
This is a forward-port of release/3.5 commit 566f4678

* Add generic direction enum for negotiation setup.

* Rename a rather long wrapper function to a shorter one consistent with
  what it does.

* Rework context setup function.

* Don't check for handshake state before beginning handshaking.

  The old backend began a handshake and then stepped into the callback
  function if it was interrupted; the current one just jumps right into
  it, so there is no need to check if it has previously succeeded,
  because it hasn't been attempted yet.

* Add missing errno assignment to one of the handshake wrappers.

* Don't bother checking if SSL_P(F) is NULL when we already checked if
  F->ssl is NULL -- this should be impossible.

* Don't bother checking if SSL_C(F) is NULL -- this was a no-op.

* Change the socket send and recv functions to not peer into a foreign
  ratbox structure -- use the correct function to get the socket fd.

* Rewrap some lines and function arguments.

Other backends will be brought into line with this backend soon.

This will enable easier maintenance of the backends, by reducing the
diffs between them, which should make different behaviour easier to
spot.
2016-09-10 08:51:09 +00:00
..
arc4random.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
balloc.c librb: silence some fairly harmless compiler warnings 2016-06-01 20:54:11 +00:00
commio.c librb: set sockaddr port to 0 in success path 2016-09-03 14:36:17 +01:00
crypt.c librb: silence some fairly harmless compiler warnings 2016-06-01 20:54:11 +00:00
devpoll.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
dictionary.c librb: dictionaries which use integer keys may use 0 legitimately 2016-06-17 23:29:11 -05:00
epoll.c librb: close FDs when they're freed (outside of select handler) 2016-04-29 16:19:08 -05:00
event.c librb: rb_run_event -> rb_run_one_event 2016-04-02 23:38:28 -05:00
export-syms.txt add mkfingerprint program 2016-04-26 20:49:03 +01:00
gnutls.c GNUTLS: Avoid null dereference in constructing ciphersuite 2016-08-19 20:26:43 +00:00
helper.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
kqueue.c librb: rb_run_event -> rb_run_one_event 2016-04-02 23:38:28 -05:00
linebuf.c librb: silence some fairly harmless compiler warnings 2016-06-01 20:54:11 +00:00
Makefile.am Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
mbedtls.c MbedTLS: Misc backend cleanups 2016-09-10 08:51:09 +00:00
mbedtls_embedded_data.h MbedTLS: Initial attempt to port release/3.5 commit 89d4c468 to this branch 2016-09-04 03:50:29 +00:00
nossl.c add mkfingerprint program 2016-04-26 20:49:03 +01:00
openssl.c OpenSSL: Initialise if LibreSSL 2016-09-01 19:29:47 +00:00
patricia.c librb: silence some fairly harmless compiler warnings 2016-06-01 20:54:11 +00:00
poll.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
ports.c librb: rb_run_event -> rb_run_one_event 2016-04-02 23:38:28 -05:00
radixtree.c typedef-ify rb_radixtree for consistency. 2016-03-23 08:32:22 -05:00
rawbuf.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
rb_lib.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
rb_memory.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
select.c Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
sigio.c librb: rb_run_event -> rb_run_one_event 2016-04-02 23:38:28 -05:00
tools.c tools: fix stub rb_strcasecmp() build 2016-04-29 19:52:19 -05:00
unix.c librb: support rb_path_to_self on FreeBSD 4.8 2016-05-12 12:43:15 +01:00
version.c.SH Remove the rest of the SVN id tags 2016-03-23 20:13:12 -04:00
win32.c win32: change from ircd-ratbox-class to charybdis-class 2016-04-02 23:19:38 -05:00