> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/sdiplugin_8h.md).

# sdiplugin.h

[Data Structures](#nested-classes) | [Macros](#define-members) | [Typedefs](#typedef-members) | [Functions](#func-members)

`#include <vector>`

Include dependency graph for sdiplugin.h:

![](/files/rsEU0oBstfp9aa0JDusF)

This graph shows which files directly or indirectly include this file:

![](/files/W8Ayo9NYHk3yI3sMYC3j)

[Go to the source code of this file.](/adk-5.0-programmers-guide/sdiplugin_8h_source.md)

|                 |                                                                                |
| --------------- | ------------------------------------------------------------------------------ |
| Data Structures |                                                                                |
| class           | [SDIPlugin](/adk-5.0-programmers-guide/readme/annotated/class_s_d_i_plugin.md) |

|         |                                                                                                |
| ------- | ---------------------------------------------------------------------------------------------- |
| Macros  |                                                                                                |
| #define | [CLA\_PLUGIN\_CMD](#ae46bbd2ec875260da9eb2686b3ce4856)   0x26                                  |
|         | <p>Class for plugin commands. <a href="#ae46bbd2ec875260da9eb2686b3ce4856">More...</a><br></p> |

|                 |                                                                                                                                                               |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Typedefs        |                                                                                                                                                               |
| typedef void(\* | [Vcl\_Encryption\_Callback](#acdab1a2f24dd2c626dbbaf8b99bcc8ff)) (void \*data, unsigned short \*size, void \*context)                                         |
| typedef void(\* | [Vcl\_Encryption\_Callback\_Setter](#aa5c37bc80612b625dd20f7c970c36d11)) ([Vcl\_Encryption\_Callback](#acdab1a2f24dd2c626dbbaf8b99bcc8ff) cb, void \*context) |

|           |                                                                                                              |
| --------- | ------------------------------------------------------------------------------------------------------------ |
| Functions |                                                                                                              |
|           | [\_\_attribute\_\_](#a0e4254a95d52cd9b80405385066fee37) ((visibility("default"))) SDIPlugin \*getSDIPlugin() |

### MacroDefinition Documentation <a href="#macro-definition-documentation" id="macro-definition-documentation"></a>

### CLA\_PLUGIN\_CMD <a href="#ae46bbd2ec875260da9eb2686b3ce4856" id="ae46bbd2ec875260da9eb2686b3ce4856"></a>

\#define CLA\_PLUGIN\_CMD   0x26

Class for plugin commands.

### TypedefDocumentation <a href="#typedef-documentation" id="typedef-documentation"></a>

### Vcl\_Encryption\_Callback <a href="#acdab1a2f24dd2c626dbbaf8b99bcc8ff" id="acdab1a2f24dd2c626dbbaf8b99bcc8ff"></a>

typedef void(\\\* Vcl\_Encryption\_Callback) (void \\\*data, unsigned short \\\*size, void \\\*context)

Type of function that is called after external manual card data entry to perform VCL encryption. The plugin must provide PAN, expiry date and optional CVV in clear and gets the data back VCL encrypted.

**Parameters**

**\[in/out]** data Data pointer provided by the plugin.in: The data provided by the plugin should have following structure:Byte 1 and 2 should contain the length of the provided dataFollowing bytes should contain the data in BERTLV format out: The returned data provided by the SDI should have following structure:Byte 1 and 2 should contain SW1/SW2If SW1/SW2 is 90 00 the following bytes should contain the data in BERTLV format **\[in/out]** size Pointer to the buffer/data sizein: buffer sizeout: data size **\[in/out]** context generic context data pointer, currently not used.

### Vcl\_Encryption\_Callback\_Setter <a href="#aa5c37bc80612b625dd20f7c970c36d11" id="aa5c37bc80612b625dd20f7c970c36d11"></a>

typedef void(\\\* Vcl\_Encryption\_Callback\_Setter) (\[Vcl\_Encryption\_Callback]\(#acdab1a2f24dd2c626dbbaf8b99bcc8ff) cb, void \\\*context)

Setter for Vcl\_Encryption\_Callback. This function should be implemented in the plugin and returned by the openExtension() function when called with the extension ID [SDIPlugin::SDIExt\_VCL\_Callback](/adk-5.0-programmers-guide/readme/annotated/class_s_d_i_plugin.md#ac54b73bc0f666acecb26aec563933dabadfaf20e6f6b758be305a019675c7b015). SDI Server calls this function to set the Vcl\_Encryption\_Callback pointer in the plugin. The plugin can then call this function in order to perform VCL encryption for externally entered manual card data.

**Parameters**

\[in] **cb** pointer to the VCL Encryption Callback function. \[in] **context** generic context data pointer, currently not used.

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### \_\_attribute\_\_() <a href="#a0e4254a95d52cd9b80405385066fee37" id="a0e4254a95d52cd9b80405385066fee37"></a>

\\\_\\\_attribute\\\_\\\_

new

SDI plugin entry function

#### Returns

[SDIPlugin](/adk-5.0-programmers-guide/readme/annotated/class_s_d_i_plugin.md) object


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/sdiplugin_8h.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
