Skip to main content

Application Development Kit (Version 4.7)


tracefilter.h File Reference

Last updated: 25-Feb-2025
#include <string>
Include dependency graph for tracefilter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void  filterCommand (const unsigned char *cmd, unsigned cmdSize, std::string &out)
void  filterResponse (const unsigned char *cmd, unsigned cmdSize, const unsigned char *rsp, unsigned rspSize, std::string &out)

Function Documentation

◆ filterCommand()

void filterCommand ( const unsigned char *  cmd,
unsigned  cmdSize,
std::string &  out 
)

Prepare and SDI command for trace and return a hexdump as STL string for it. For release build variants of SDI a trace filter is applied to command data to wipe out values of TLV tags containing sensitive data. For debug build variant the trace filter is disabled by default (use -DTRACE_FILTER to activate).

Parameters
[in] cmd pointer to SDI command buffer (starting wich class/instruction)
[in] cmdSize size of command data in buffer cmd
[out] out hexdump of SDI command as STL string
  
The size of the hexdump is basically limited by MAX_TRACE_MSG_SIZE in tracefilter.cpp.

◆ filterResponse()

void filterResponse ( const unsigned char *  cmd,
unsigned  cmdSize,
const unsigned char *  rsp,
unsigned  rspSize,
std::string &  out 
)

Prepare and SDI response for trace and return a hexdump as STL string for it. For release build variants of SDI a trace filter is applied to response data to wipe out values of TLV tags containing sensitive data. For debug build variant the trace filter is disabled by default (use -DTRACE_FILTER to activate).

Parameters
[in] cmd pointer to SDI command buffer (starting wich class/instruction)
[in] cmdSize size of command data in buffer cmd
[in] rsp pointer to SDI response buffer (starting wich class/instruction)
[in] rspSize size of response data in buffer rsp
[out] out hexdump of SDI response as STL string
  
The size of the hexdump is basically limited by MAX_TRACE_MSG_SIZE in tracefilter.cpp.

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo