> 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/vcl__ser_8h.md).

# vcl\_ser.h

[Macros](#define-members) | [Functions](#func-members)

`#include "csdcontainer.h"` `#include "`[sec/libsec.h](/adk-5.0-programmers-guide/libsec_8h_source.md)`"`

Include dependency graph for vcl\_ser.h:

![](/files/303tEc1sZ38DRUC2uAwr)

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

![](/files/c0gdVpqRkch9YVnIUQl6)

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

|         |                                                                                                                       |
| ------- | --------------------------------------------------------------------------------------------------------------------- |
| Macros  |                                                                                                                       |
| #define | [CLA\_VCL](#a23b96d4db7f9fc006bbde013693be6e9)   0x28                                                                 |
|         | <p>Class for VCL commands. <a href="#a23b96d4db7f9fc006bbde013693be6e9">More...</a><br></p>                           |
| #define | [INS\_VCL\_MSG\_REGISTART\_SRED\_REQ](#aab12a07d994fb440092bb014a8a32346)   0x00                                      |
|         | <p>Turn on Encryption in SRED mode. <a href="#aab12a07d994fb440092bb014a8a32346">More...</a><br></p>                  |
| #define | [INS\_VCL\_MSG\_STATUS\_REQUEST](#a12e57ffa62016cf689e247dc71babb83)   0x01                                           |
|         | <p>Get VCL's current status. <a href="#a12e57ffa62016cf689e247dc71babb83">More...</a><br></p>                         |
| #define | [INS\_VCL\_MSG\_ADVANCE\_DDK](#a21eb6707e39ccf673708ca0dcdfe3091)   0x02                                              |
|         | <p>Advance to next derived key. <a href="#a21eb6707e39ccf673708ca0dcdfe3091">More...</a><br></p>                      |
| #define | [INS\_VCL\_MSG\_EPARMS\_REQUEST](#a2c95212e9eb1c730247a166f9d191eef)   0x03                                           |
|         | <p>Get eParms from VCL. <a href="#a2c95212e9eb1c730247a166f9d191eef">More...</a><br></p>                              |
| #define | [INS\_VCL\_MSG\_DIAG\_QUERY](#a145b342de0e8ad187675a464f7a73c03)   0x06                                               |
|         | <p>Diag query. <a href="#a145b342de0e8ad187675a464f7a73c03">More...</a><br></p>                                       |
| #define | [INS\_VCL\_MSG\_DERIV\_QUERY](#a3e0786e6b404dc69cdc7823e73ad0a5c)   0x07                                              |
|         | <p>Derive data query. <a href="#a3e0786e6b404dc69cdc7823e73ad0a5c">More...</a><br></p>                                |
| #define | [INS\_VCL\_MSG\_OVERRIDE\_MSG\_QUERY](#ae32ce12f910cb6b405505b34da87ccc0)   0x08                                      |
|         | <p>Request the queued VCL Override Command Response. <a href="#ae32ce12f910cb6b405505b34da87ccc0">More...</a><br></p> |
| #define | [INS\_VCL\_MSG\_KSN\_REQ](#ad3ae7aa355c3a6851cadb280c8f1fd1d)   0x09                                                  |
|         | <p>KSN request. <a href="#ad3ae7aa355c3a6851cadb280c8f1fd1d">More...</a><br></p>                                      |
| #define | [INS\_VCL\_MSG\_KMAILIN\_REQUEST](#a9fec4a51efd591ca5caad365b3f8e345)   0x0A                                          |
|         | <p>KMAILIN request (VOS3 only) <a href="#a9fec4a51efd591ca5caad365b3f8e345">More...</a><br></p>                       |

|           |                                                                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Functions |                                                                                                                                                                                                    |
| void      | [handleVcl](#ad02af29750575b39f81961596d4c4f8e) (unsigned short msgBufSize, unsigned char \*msg, unsigned short msgSize, unsigned short rspBufSize, unsigned char \*rsp, unsigned short \*rspSize) |

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

### CLA\_VCL <a href="#a23b96d4db7f9fc006bbde013693be6e9" id="a23b96d4db7f9fc006bbde013693be6e9"></a>

\#define CLA\_VCL   0x28

Class for VCL commands.

### INS\_VCL\_MSG\_ADVANCE\_DDK <a href="#a21eb6707e39ccf673708ca0dcdfe3091" id="a21eb6707e39ccf673708ca0dcdfe3091"></a>

\#define INS\_VCL\_MSG\_ADVANCE\_DDK   0x02

Advance to next derived key.

### INS\_VCL\_MSG\_DERIV\_QUERY <a href="#a3e0786e6b404dc69cdc7823e73ad0a5c" id="a3e0786e6b404dc69cdc7823e73ad0a5c"></a>

\#define INS\_VCL\_MSG\_DERIV\_QUERY   0x07

Derive data query.

### INS\_VCL\_MSG\_DIAG\_QUERY <a href="#a145b342de0e8ad187675a464f7a73c03" id="a145b342de0e8ad187675a464f7a73c03"></a>

\#define INS\_VCL\_MSG\_DIAG\_QUERY   0x06

Diag query.

### INS\_VCL\_MSG\_EPARMS\_REQUEST <a href="#a2c95212e9eb1c730247a166f9d191eef" id="a2c95212e9eb1c730247a166f9d191eef"></a>

\#define INS\_VCL\_MSG\_EPARMS\_REQUEST   0x03

Get eParms from VCL.

### INS\_VCL\_MSG\_KMAILIN\_REQUEST <a href="#a9fec4a51efd591ca5caad365b3f8e345" id="a9fec4a51efd591ca5caad365b3f8e345"></a>

\#define INS\_VCL\_MSG\_KMAILIN\_REQUEST   0x0A

KMAILIN request (VOS3 only)

### INS\_VCL\_MSG\_KSN\_REQ <a href="#ad3ae7aa355c3a6851cadb280c8f1fd1d" id="ad3ae7aa355c3a6851cadb280c8f1fd1d"></a>

\#define INS\_VCL\_MSG\_KSN\_REQ   0x09

KSN request.

### INS\_VCL\_MSG\_OVERRIDE\_MSG\_QUERY <a href="#ae32ce12f910cb6b405505b34da87ccc0" id="ae32ce12f910cb6b405505b34da87ccc0"></a>

\#define INS\_VCL\_MSG\_OVERRIDE\_MSG\_QUERY   0x08

Request the queued VCL Override Command Response.

### INS\_VCL\_MSG\_REGISTART\_SRED\_REQ <a href="#aab12a07d994fb440092bb014a8a32346" id="aab12a07d994fb440092bb014a8a32346"></a>

\#define INS\_VCL\_MSG\_REGISTART\_SRED\_REQ   0x00

Turn on Encryption in SRED mode.

### INS\_VCL\_MSG\_STATUS\_REQUEST <a href="#a12e57ffa62016cf689e247dc71babb83" id="a12e57ffa62016cf689e247dc71babb83"></a>

\#define INS\_VCL\_MSG\_STATUS\_REQUEST   0x01

Get VCL's current status.

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

### handleVcl() <a href="#ad02af29750575b39f81961596d4c4f8e" id="ad02af29750575b39f81961596d4c4f8e"></a>

void handleVcl

Dispatch function to handle different VCL commands

**Parameters**

\[in] **msgBufSize** size of the input message buffer \[in] **msg** pointer to the input message buffer \[in] **msgSize** size of the input message \[in] **rspBufSize** maximum size of the response buffer \[in,out] **rsp** pointer to the response buffer \[in,out] **rspSize** pointer to the response message size


---

# 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/vcl__ser_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.
