Shadow Stack  0.2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Public Attributes | Private Types | List of all members
SSHandlers Class Referencefinal

A class used to contain mode specific function definitions Specifically, the event handlers this client must used. More...

#include <dr_shadow_stack_client.hpp>

Public Member Functions

 SSHandlers ()=delete
 Delete default constructor. More...
 
 SSHandlers (const on_call_signature c, const on_ret_signature r, const on_signal_signature s)
 Constructor. More...
 
bool is_valid () const
 Returns true if all function pointers are non-null. More...
 

Public Attributes

const on_call_signature on_call
 The 'on call' handler. More...
 
const on_ret_signature on_ret
 The 'on ret' handler. More...
 
const on_signal_signature on_signal
 The function called whenever a signal is caught. More...
 

Private Types

typedef void(*const on_call_signature )(const app_pc ret_to_addr)
 The type 'on call' funciton signature. More...
 
typedef void(*const on_ret_signature )(const app_pc instr_addr, const app_pc target_addr)
 The type 'on ret' funciton signature. More...
 
typedef void(*const on_signal_signature )()
 The type 'on signal' funciton signature. More...
 

Detailed Description

A class used to contain mode specific function definitions Specifically, the event handlers this client must used.

Member Typedef Documentation

typedef void( *const SSHandlers::on_call_signature)(const app_pc ret_to_addr)
private

The type 'on call' funciton signature.

typedef void( *const SSHandlers::on_ret_signature)(const app_pc instr_addr, const app_pc target_addr)
private

The type 'on ret' funciton signature.

typedef void( *const SSHandlers::on_signal_signature)()
private

The type 'on signal' funciton signature.

Constructor & Destructor Documentation

SSHandlers::SSHandlers ( )
delete

Delete default constructor.

SSHandlers::SSHandlers ( const on_call_signature  c,
const on_ret_signature  r,
const on_signal_signature  s 
)

Constructor.

Member Function Documentation

bool SSHandlers::is_valid ( ) const

Returns true if all function pointers are non-null.

Member Data Documentation

const on_call_signature SSHandlers::on_call

The 'on call' handler.

const on_ret_signature SSHandlers::on_ret

The 'on ret' handler.

const on_signal_signature SSHandlers::on_signal

The function called whenever a signal is caught.


The documentation for this class was generated from the following files: