sasl 0.2.0

A crate for SASL authentication.
Documentation
use openssl::error::ErrorStack;

/// A wrapper enum for things that could go wrong in this crate.
#[derive(Debug)]
pub enum Error {
    /// An error in OpenSSL.
    OpenSslErrorStack(ErrorStack),
    /// An error in a SASL mechanism.
    SaslError(String),
}

impl From<ErrorStack> for Error {
    fn from(err: ErrorStack) -> Error {
        Error::OpenSslErrorStack(err)
    }
}