psk-client-0.1.8 doesn't have any documentation.
PSK Client
This is a simple wrapper around the PSK functionality exposed by the openssl crate. PR's to make this more generic, useable and informative (in terms of errors) are more than welcome.
Features
PSK Client has one feature which is openssl-vendored which simply enables the vendored feature on the openssl crate, for further information, see the openssl-rs docs.
Usage
use ;
A key may also be retrieved from a file (or anything implementing Read), like so:
use ;
use File;
Default Ciphers
By default the client will use the following ciphers, this can be cleared by calling reset_ciphers() on a PskClientBuilder. You can supply your own ciphers, either after clearing the pre-defined cipers, or in addition to
them by calling cipher("<cipher>") on a PskClientBuilder as shown in the first example above.
RSA-PSK-AES256-GCM-SHA384DHE-PSK-AES256-GCM-SHA384RSA-PSK-CHACHA20-POLY1305DHE-PSK-CHACHA20-POLY1305DHE-PSK-AES256-CCM8DHE-PSK-AES256-CCMPSK-AES256-GCM-SHA384PSK-CHACHA20-POLY1305PSK-AES256-CCM8PSK-AES256-CCMRSA-PSK-AES128-GCM-SHA256DHE-PSK-AES128-GCM-SHA256