Commit Graph

20 Commits

Author SHA1 Message Date
Jacob Rothstein bdfa6488d2
add tcp_{nodelay,ttl} to Debug, example, tcp_ prefix 2021-05-24 17:27:38 -07:00
fiag ae009b5d89 Move TCP_NODELAY and TTL options to TlsListenerBuilder. 2021-05-24 11:59:37 +08:00
fiag 83a1948dfd Add TCP_NODELAY and TTL options. 2021-05-20 01:19:53 +08:00
Josh Triplett 68594fdcb2 Add support for custom TLS acceptors
Allow the configuration to provide a custom object to accept a TlsStream
from a TcpStream.

This gives total control over the TLS negotiation process, such as to
process some TLS streams or ALPN negotiations internally without passing
them through to tide. In particular, this allows responding to ACME
tls-alpn-01 challenges.
2021-03-19 23:50:40 -07:00
Josh Triplett 2990e7d4a0 Switch to async-rustls
tide-rustls is rustls-specific, and using async-rustls will allow users
of tide-rustls to depend on that.
2021-03-19 17:04:39 -07:00
Josh Triplett 0306e915b0 Simplify TlsListener::configure
Now that we no longer need to return the TlsAcceptor, integrate the
error handling into the preceeding match.
2021-03-19 16:32:50 -07:00
Josh Triplett e8ea6d0e0b Drop unused return values of TlsListener::configure and TlsListener::connect
These methods return the TlsAcceptor and TcpListener, respectively,
but the only caller ignores those return values.
2021-03-19 13:09:02 -07:00
Jacob Rothstein d0b3e40daf
update for tide v0.15 2020-11-24 18:53:42 -08:00
Jacob Rothstein a68017473e
satisfy clippy 2020-10-16 18:44:02 -07:00
Jacob Rothstein d6ce5fa748
fix documentation mistake 2020-07-26 20:17:34 -07:00
Jacob Rothstein 396aaa23e1
appease clippy 2020-07-26 19:49:36 -07:00
Jacob Rothstein b22c76bbc7
reexport rustls and async-tls 2020-07-26 19:42:29 -07:00
Jacob Rothstein 9ab7483d80
document the public interface 2020-07-26 19:40:44 -07:00
Jacob Rothstein 3feda0a6aa
add support for rsa keys 2020-07-26 17:54:05 -07:00
Jacob Rothstein 63cfce14e3
update for tide 0.12 2020-07-17 14:08:25 -07:00
Jacob Rothstein dbdc3f196b
remove boxlistener type 2020-06-28 19:17:49 -07:00
Jacob Rothstein 26c44a3890
librarify 2020-06-28 19:09:28 -07:00
Jacob Rothstein 8bbdd9cc90
improve tls_stream_wrapper with async_dup 2020-06-28 13:34:25 -07:00
Jacob Rothstein 37588c5d1a
add a builder for more flexible configuration 2020-06-27 18:25:09 -07:00
Jacob Rothstein 646b03f0bb
initial commit 2020-06-24 10:56:59 -07:00