Module: Contrast::AgentLib::InputTracing

Extended by:
FFI::Library
Includes:
Components::Logger::InstanceMethods
Included in:
Interface
Defined in:
lib/contrast/agent_lib/api/input_tracing.rb

Overview

This module is defined in Rust as external, we used it here. Initializes the AgentLib. Here will be all methods from the C bindings contrast_c::input_tracing module.

Defined Under Namespace

Classes: CEvalResult, QuerySinkResult

Class Method Summary collapse

Methods included from Components::Logger::InstanceMethods

#cef_logger, #logger

Class Method Details

.dl__free_check(result) ⇒ Object

Once we have pointer or returned data the lib expect us to free it, so it could GCd. Most of the time we would receive result pointer. Used with dl__check_cmdi_query and dl__check_sqli_query.

Parameters:

  • result (Pointer)


77
78
79
# File 'lib/contrast/agent_lib/api/input_tracing.rb', line 77

def self.dl__free_check result
  free_check_query_sink_result(result)
end

.dl__free_eval(result) ⇒ Object

Free the input evaluation result received from dl__eval_input, and dl__eval_header_input

Parameters:

  • result (Pointer)


85
86
87
# File 'lib/contrast/agent_lib/api/input_tracing.rb', line 85

def self.dl__free_eval result
  free_eval_result(result)
end