pam-sys icon indicating copy to clipboard operation
pam-sys copied to clipboard

Rust FFI bindings to the Linux Pluggable Authentication Modules (PAM)

pam-sys - Rust FFI bindings to the Linux Pluggable Authentication Modules (PAM)

Crates.io Documentation Build Status Azure Build Status Cirrus License

This crate uses bindgen to generate the raw FFI definitions for PAM. For a rustified API consider using pam.

Supported Rust versions

The library is only continuously built against Rust stable, beta and nightly but as it does not use a lot of new language features it should probably compile on older versions as well. If you encounter problems building on older versions and a small fix can be applied to make the build succeed, consider opening a pull request.

Supported operating systems

Currently this library is only thoroughly tested on Linux (due to the lack of reliable access to other platforms). However, support of all operating systems supported by PAM is an explicit goal. If you spot an error, please open an issue and I'll try to resolve it.

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.