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
|
||||
///
|
||||
/// Session that use PAM for user authentication and session initializing
|
||||
/// Session that use PAM for user authentication and setup
|
||||
///
|
||||
/// # Fields
|
||||
///
|
||||
@@ -66,7 +66,7 @@ pub struct AnonymousSession {
|
||||
username: String,
|
||||
}
|
||||
|
||||
/// Private application data form PamSession
|
||||
/// Private application data for PamSession
|
||||
///
|
||||
/// # Fields
|
||||
///
|
||||
@@ -171,8 +171,8 @@ unsafe extern "C" fn pam_conv_handler(
|
||||
|
||||
/// Public trait for all session object
|
||||
///
|
||||
/// This interface shall implemented for any session object (PamSession, AnonymousSession)
|
||||
/// that want to export public API for user authentication and session opening
|
||||
/// This interface shall be implemented on any session object (PamSession, AnonymousSession)
|
||||
/// that wants to export public APIs for user authentication and session opening
|
||||
///
|
||||
pub trait Session {
|
||||
/// Perform authentication for user check
|
||||
@@ -225,7 +225,7 @@ pub trait 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 {
|
||||
/// Drop the process privilege to current user
|
||||
|
||||
Reference in New Issue
Block a user