11.12.3.4.96. Function Se05x_API_GetVersion¶
Defined in File se05x_APDU_apis.h
11.12.3.4.96.1. Function Documentation¶
-
smStatus_t
Se05x_API_GetVersion
(pSe05xSession_t session_ctx, uint8_t *pappletVersion, size_t *appletVersionLen)¶ Se05x_API_GetVersion
Gets the applet version information.
This will return 7-byte VersionInfo (including major, minor and patch version of the applet, supported applet features and secure box version).
Command to Applet
Field
Value
Description
CLA
0x80
INS
INS_MGMT
See
SE05x_INS_t
P1
P1_DEFAULT
See
SE05x_P1_t
P2
P2_VERSION or P2_VERSION_EXT
See
SE05x_P2_t
Lc
#(Payload)
Le
0x00
Expecting TLV with 7-byte data (when P2 = P2_VERSION) or a TLV with 37 byte data (when P2= P2_VERSION_EXT).
R-APDU Body
Value
Description
TLV[TAG_1]
7-byte
VersionInfoRef
(if P2 = P2_VERSION) or 7-byte VersionInfo followed by 30 bytes extendedFeatureBits (if P2 = P2_VERSION_EXT)R-APDU Trailer
SW
Description
SW_NO_ERROR
Data is returned successfully.
- Return
The sm status.
- Parameters
[in] session_ctx
: The session contextpappletVersion
: The papplet versionappletVersionLen
: The applet version length