trust-store  2.0.0
Provides a common implementation of a trust store to be used by trusted helpers.
core::trust::mir Namespace Reference

Classes

class  InvalidMirConnection
 

Functions

CORE_TRUST_DLL_PUBLIC MirConnection * connect (const std::string &endpoint, const std::string &name)
 Helper function building up a connection to Mir. More...
 
CORE_TRUST_DLL_PUBLIC std::shared_ptr< core::trust::Agentcreate_agent_for_mir_connection (MirConnection *connection)
 create_agent_for_mir_connection creates a trust::Agent implementation leveraging Mir's trusted prompting API. More...
 

Function Documentation

◆ connect()

CORE_TRUST_DLL_PUBLIC MirConnection* core::trust::mir::connect ( const std::string &  endpoint,
const std::string &  name 
)

Helper function building up a connection to Mir.

Parameters
endpointThe name of the endpoint exposed by the Mir instance.
nameThe name assigned to this connection.
Exceptions
std::runtime_errorin case of issues.

◆ create_agent_for_mir_connection()

CORE_TRUST_DLL_PUBLIC std::shared_ptr<core::trust::Agent> core::trust::mir::create_agent_for_mir_connection ( MirConnection *  connection)

create_agent_for_mir_connection creates a trust::Agent implementation leveraging Mir's trusted prompting API.

Parameters
connectionAn existing connection to a Mir instance.
Exceptions
InvalidMirConnectionif the connection object is invalid.