19 #ifndef CORE_TRUST_REQUEST_H_
20 #define CORE_TRUST_REQUEST_H_
56 typedef std::chrono::system_clock::duration
Duration;
58 typedef std::chrono::system_clock::time_point
Timestamp;
61 static constexpr
const unsigned int default_feature = 0;
177 #endif // CORE_TRUST_REQUEST_H_
CORE_TRUST_DLL_PUBLIC Request::Answer process_trust_request(const RequestParameters ¶ms)
Processes an incoming trust-request by an application, tries to lookup a previous reply before issuin...
std::shared_ptr< Agent > agent
The Agent implementation to dispatch a request to the user.
The Request struct encapsulates information about a trust request answered by the user...
Summarizes all parameters for processing a trust request.
pid_t application_pid
The process id of the requesting application.
CORE_TRUST_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, const Request::Answer &a)
operator << pretty prints answers to the provided output stream.
std::shared_ptr< Store > store
The trust store to be used for caching purposes.
std::chrono::system_clock::duration Duration
Duration in wallclock time.
std::uint64_t feature
The service-specific feature identifier.
std::string description
An extended description that should be presented to the user on prompting.
Answer
Enumerates the possible answers given by a user.
std::chrono::system_clock::time_point Timestamp
Requests are timestamped with wallclock time.
CORE_TRUST_DLL_PUBLIC bool operator==(const Request &lhs, const Request &rhs)
operator == compares two Requests for equality.
std::string application_id
The id of the requesting application.
#define CORE_TRUST_DLL_PUBLIC