annotate src/lib.rs @ 6:2ec97116d72c

Updates for rustc 1.0.0-beta
author Jesse Hallett <jesse@galois.com>
date Fri, 03 Apr 2015 23:16:44 -0700
parents e69e2966ae0d
children 827faa554528
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
1 //! Interface to the pluggable authentication module framework (PAM).
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
2 //!
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
3 //! The goal of this library is to provide a type-safe API that can be used to
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
4 //! interact with PAM. The library is incomplete - currently it supports
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
5 //! a subset of functions for use in a pam authentication module. A pam module
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
6 //! is a shared library that is invoked to authenticate a user, or to perform
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
7 //! other functions.
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
8 //!
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
9 //! For general information on writing pam modules, see
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
10 //! [The Linux-PAM Module Writers' Guide][module-guide]
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
11 //!
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
12 //! [module-guide]: http://www.linux-pam.org/Linux-PAM-html/Linux-PAM_MWG.html
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
13 //!
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
14 //! A typical authentication module will define an external function called
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
15 //! `pam_sm_authenticate()`, which will use functions in this library to
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
16 //! interrogate the program that requested authentication for more information,
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
17 //! and to render a result. For a working example that uses this library, see
2
e69e2966ae0d Replaces generated README
Jesse Hallett <jesse@galois.com>
parents: 1
diff changeset
18 //! [toznyauth-pam][].
1
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
19 //!
2
e69e2966ae0d Replaces generated README
Jesse Hallett <jesse@galois.com>
parents: 1
diff changeset
20 //! [toznyauth-pam]: https://github.com/tozny/toznyauth-pam
1
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
21 //!
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
22 //! Note that constants that are normally read from pam header files are
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
23 //! hard-coded in the `constants` module. The values there are taken from
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
24 //! a Linux system. That means that it might take some work to get this library
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
25 //! to work on other platforms.
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
26
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
27 extern crate libc;
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
28
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
29 pub mod conv;
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
30 pub mod constants;
b195a14058bb initial commit
Jesse Hallett <jesse@galois.com>
parents:
diff changeset
31 pub mod module;