Crate tonic_openssl

Source
Expand description

A openssl adaptor for tonic.

Examples can be found in the example crate within the repository.

Structs§

SslConnectInfo
Connection info for SSL streams.
SslStream
A SslStream wrapper type that implements tokio’s io traits and tonic’s Connected trait.

Constants§

ALPN_H2_WIRE
A const that contains the on the wire h2 alpn value that can be passed directly to OpenSSL.

Functions§

connector
tonic client connector to connect to https endpoint at addr using openssl settings in ssl. domain is the server name to validate, and if none, the host part in the uri is used instead. Disabling validation is not supported.
incoming
Wrap some incoming stream of io types with OpenSSL’s SslStream type. This will take some acceptor and a stream of io types and accept connections.
new_endpoint
Creates an endpoint with and local uri that is never used. Use connector to make connections.

Type Aliases§

Error
Wrapper error type.