fix typo
This commit is contained in:
10
src/auth.rs
10
src/auth.rs
@@ -41,7 +41,7 @@ use std::ptr;
|
|||||||
|
|
||||||
/// PAM based session
|
/// PAM based session
|
||||||
///
|
///
|
||||||
/// Session that use PAM for user authentication and session initializing
|
/// Session that use PAM for user authentication and setup
|
||||||
///
|
///
|
||||||
/// # Fields
|
/// # Fields
|
||||||
///
|
///
|
||||||
@@ -66,7 +66,7 @@ pub struct AnonymousSession {
|
|||||||
username: String,
|
username: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Private application data form PamSession
|
/// Private application data for PamSession
|
||||||
///
|
///
|
||||||
/// # Fields
|
/// # Fields
|
||||||
///
|
///
|
||||||
@@ -171,8 +171,8 @@ unsafe extern "C" fn pam_conv_handler(
|
|||||||
|
|
||||||
/// Public trait for all session object
|
/// Public trait for all session object
|
||||||
///
|
///
|
||||||
/// This interface shall implemented for any session object (PamSession, AnonymousSession)
|
/// This interface shall be implemented on any session object (PamSession, AnonymousSession)
|
||||||
/// that want to export public API for user authentication and session opening
|
/// that wants to export public APIs for user authentication and session opening
|
||||||
///
|
///
|
||||||
pub trait Session {
|
pub trait Session {
|
||||||
/// Perform authentication for user check
|
/// Perform authentication for user check
|
||||||
@@ -225,7 +225,7 @@ pub trait Session {
|
|||||||
|
|
||||||
/// Trait that provide privilege dropping for new user session
|
/// Trait that provide privilege dropping for new user session
|
||||||
///
|
///
|
||||||
/// This trait shall be implement on any Session object
|
/// This trait shall be implemented on any Session object
|
||||||
///
|
///
|
||||||
trait DropPrivilege {
|
trait DropPrivilege {
|
||||||
/// Drop the process privilege to current user
|
/// Drop the process privilege to current user
|
||||||
|
|||||||
Reference in New Issue
Block a user