1 #ifndef LIBFILEZILLA_IMPERSONATION_HEADER
2 #define LIBFILEZILLA_IMPERSONATION_HEADER
16 enum class impersonation_flag
22 class impersonation_token_impl;
54 explicit operator bool()
const {
55 return impl_.operator bool();
68 std::size_t hash()
const noexcept;
71 friend class impersonation_token_impl;
72 std::unique_ptr<impersonation_token_impl> impl_;
89 struct hash<
fz::impersonation_token>
bool operator==(symmetric_key const &lhs, symmetric_key const &rhs)
Side-channel safe comparison.
Definition: impersonation.hpp:85
Impersonation tokens for a given user can be used to spawn processes running as that user...
Definition: impersonation.hpp:32
native_string current_username()
Returns the username the calling thread is running under.
std::wstring native_string
A string in the system's native character type and encoding. Note: This typedef changes depending on...
Definition: string.hpp:34
String types and assorted functions.
The namespace used by libfilezilla.
Definition: apply.hpp:17