summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKAKit/KernelKit/User.h
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2024-11-02 07:46:45 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2024-11-02 07:49:04 +0100
commitf5e656424dc41ff93c67bcc8139a76d40f525efc (patch)
treef701847fb8d2bec8a31c1f24f86afc5f2f338e64 /dev/ZKAKit/KernelKit/User.h
parent358379efc79bdda8b5742b82b95c45063184d76f (diff)
IMP: minOSKrnl commit 1039.
- KernelKit: New allocation limit in Heap.cc - KernelKit: Add Matches method for password validation. - KernelKit: Scheduler and Thread have been improved with new validations on frame. - META: Ran format command. - NewKit: Add new Ptr8 type for UInt8* types. - MBCI: Fix codestyle. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKAKit/KernelKit/User.h')
-rw-r--r--dev/ZKAKit/KernelKit/User.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/dev/ZKAKit/KernelKit/User.h b/dev/ZKAKit/KernelKit/User.h
index 3e48f1bd..ebb8cee2 100644
--- a/dev/ZKAKit/KernelKit/User.h
+++ b/dev/ZKAKit/KernelKit/User.h
@@ -65,12 +65,17 @@ namespace Kernel
/// @brief Is she a super user?
Bool IsSuperUser() noexcept;
- Bool TrySave(const UserPublicKey password) noexcept;
+ /// @brief Saves a password from the public key.
+ Bool Save(const UserPublicKey password) noexcept;
+
+ /// @brief Checks if a password matches the **password**.
+ /// @param password the password to check.
+ Bool Matches(const UserPublicKey password) noexcept;
private:
UserRingKind fRing{UserRingKind::kRingStdUser};
- Char fUserName[kMaxUserNameLen] = {0};
- Char fUserToken[kMaxUserTokenLen] = {0};
+ Char fUserName[kMaxUserNameLen] = {0};
+ Char fUserToken[kMaxUserTokenLen] = {0};
};
} // namespace Kernel