![Latest Version] ![docs] ![maintenance] ![license]
rsasl is an framework for RFC 4422; the Simple Authentication and Security Layer — aka SASL.
rsasl provide a large number of mechanisms by itself: (Crossed off ones are ported to pure Rust already, striked through ones aren't yet implemented in the 2.0 version / main branch)
Additional mechanisms can be implemented by other crates.
rsasl allows users to select the available mechanisms at compile time using cargo features.
For an overview refer to the module documentation of rsasl::mechanisms
.
Major version 1 of this crate uses gsasl-sys which are binding
to GNU gsasl. This makes the use of unsafe
code and FFI necessary.
You can find the latest 1.X.Y version in the branch 1.X.X
Version 2.0.0-preview
is a pure-Rust rewrite using sources transpiled using c2rust.
Keep in mind that despite being Rust this code is as least as unsafe as the original C code. Most of this unsafe
code will be removed before the first non-preview 2.0.0
release.
Version 2 of this library is a transpilation of gsasl and thus under the very same license of LGPL 2.1 or later.
You can find a few examples on GitHub.