Additional Enabling Structures / Classes
|
Triple Mode Redundancy-related information (TMR)
|
Structure
CMENABLING_CONTEXT
|
CMENABLING_CONTEXT contains enabling data. It can be collected using CmGetInfo with option CM_GEI_ENABLEINFO. It can be used for enabling using CmProgram. Syntax
Parameter mulFirmCode contains the Firm Code the enabling block is attached to. mulProductCode contains the Product Code the enabling block is attached to. In the case of a value of 0, check mbItemType to see, if it is attached to Product Item with Product Code 0 or to the Firm Item. musOption specifies the following flags.
mbIndex specifies the EBI Index inside a Firm Item (or IFI). mbType specifies the type of the used enabling. This can be one of the following flags:
mulDisableTime contains disable time in seconds since the 1st January 2000 0:00:00 (UTC). mausText contains the text of the Enabling Block Item. Only available for Time Pin and Finger Pin. musFlags specifies the following states:
musFlags specifies the following states: mbItemType specifies the following item types:
mcbEnableAccessCode contains the number of bytes which are defined in the Enable Access Code. This must be a value between 2 and 16. mabEnableAccessCode contains the Enable Access Code. musEnablePassword contains the Enable Password. mbEnableLevel specifies the Enable Level. This can be one of the following flags (see mbDisableLevel). mbDisableLevel specifies the Disable Level. This can be one of the following flags:
Note You may either use mabEnableAccessCode or musEnablePassword for enabling / disabling the item depending on the value of mcbEnableAccessCode. If mcbEnableAccessCode is 0, the text in musEnablePassword is used, otherwise the code of musEnableAccessCode is used. CMENABLING_CONTEXT is supported since CodeMeter Version 4.30.
|
Structure
CMENABLING_ENABLEBLOCKITEM_LIST
Structure CMENABLING_ENABLEBLOCKITEM_LIST CMENABLING_ENABLEBLOCKITEM_LIST contains data of a Enable Block Items (EBI) when they are read out of the CmContainer. Syntax
Parameter musOption specifies the following flags.
mbIndex specifies the EBI Index inside a Firm Item (or IFI). mbType specifies the type of the used enabling. This can be one of the following flags:
mcmSimplePin contains the data when the EBI is using SimplePin enabling (see mcmTimePin contains the data when the EBI is using TimePin enabling (see structure
Note On Windows the mausText array can be simply casted to a wchar_t array, because on Windows wchar_t is a 16 Bit value. On macOS and Linux the whole array must be converted byte by byte to a wchar_t array because here wchar_t has is 32 Bit long by default.
|
Structure
CMENABLING_ENABLELOOKUPENTRY
|
CMENABLING_ENABLELOOKUPENTRY defines a single Enabling Lookup Entry Item (ELI). Syntax
Parameter musOption specifies the following flags.
mbEnableBlockIndex contains the index of the EBI. mbEnableLevel specifies the Enable Level. This can be one of the following flags (see mbDisableLevel). mbDisableLevel specifies the Disable Level. This can be one of the following flags:
mbType specifies the type of the used enabling. This can be one of the following flags:
musStatus specifies the following flags.
Note The members mbType and musStatus are available since CodeMeter Version 4.40.
|
Structure
CMENABLING_SIMPLEPIN_LIST
Structure CMENABLING_SIMPLEPIN_LIST CMENABLING_SIMPLEPIN_LIST describes an Enabling Block of type "Simple PIN" which is returned by the List command. Syntax
Parameter mcbEnableAccessCode contains the number of bytes which are defined in the Enable Access Code. This must be a value between 2 and 16. mabEnableAccessCode contains the Enable Access Code bytes, the length is defined by the mcbEnableAccessCode member.
|
Structure
CMENABLING_WRITEUPDATE
Structure CMENABLING_WRITEUPDATE CMENABLING_WRITEUPDATE describes the request sequence for updating a Enable Block Item (EBI) command. Syntax
Parameter mbEnableBlockIndex contains the index of the Enabling Block which is attached. The subsequent bytes are encrypted by AES-CBC or Triple-DES-CBC, the exact method depends on the type of the addressed Update Enabling Block. The sequence is padded with 0 bytes to a multiple of 16 bytes. After that the current challenge-response token (16 bytes) is appended. Then the complete sequence is encrypted by Triple-DES-CBC or AES-CBC, in dependency of the type of Enabling Block.
This flag and the restricted behavior for Access Keys was introduced with Firmware Version 1.05. musCtrl determines which parts are updated. This can be specified by the following flags:
mulFirmUpdateCounter contains the current value of the Firm Update Counter of the Firm Item which owns the Enabling Block. mcmEnableBlockItem specifies the Enabling Block Item which is updated. The type must be identical with the accessed Enabling Block Item.
|
Class
CmEnablingContext.
|
CmEnablingContext contains enabling data. It can be collected using CmGetInfo with option EnableInfo. It can be used for enabling using CmProgram. Syntax
Parameter FirmCode contains the Firm Code the enabling block is attached to. ProductCode contains the Product Code the enabling block is attached to. In the case of a value of 0, check mbItemType to see, if it is attached to Product Item with Product Code 0 or to the Firm Item. CmEnablingEnableBlockItem.OptionList specifies the following flags.
Index specifies the EBI Index inside a Firm Item (or IFI). CmEnablingEnableBlockItem.TypeList specifies the type of the used enabling. This can be one of the following flags:
DisableTime contains disable time in seconds since the 1st January 2000 0:00:00 (UTC). CmEnablingEnableLookupEntry.OptionList specifies the following flags.
CmEnableContext.ItemTypeOption specifies the following item types:
EnableAccessCodeLen contains the number of bytes which are defined in the Enable Access Code. This must be a value between 2 and 16. CmEnablingEnableLookupEntry.EnableLevelList Enabled specifies the Enable Level. This can be one of the following flags.
CmEnablingEnableLookupEntry.EnableLevelList specifies the Disable Level. This can be one of the following flags as described for EnableLevel: Text contains the text of the Enabling Block Item. Only available for Time Pin and Finger Pin. EnableAccessCode contains the Enable Access Code. EnablePassword contains the Enable Password.
Note You may either use mabEnableAccessCode or musEnablePassword for enabling / disabling the item depending on the value of mcbEnableAccessCode. If mcbEnableAccessCode is 0, the text in musEnablePassword is used, otherwise the code of musEnableAccessCode is used. CmEnablingContext is supported since CodeMeter Version 4.30.
|
Class
CmEnablingEnableBlockItem
Class CmEnablingEnableBlockItem CmEnablingEnableBlockItem contains data of a Enable Block Item (EBI) when they should be set into the CmContainer. Syntax
Parameter NoDisableTime tba. CmEnablingEnableBlockItem.OptionList
Index specifies the EBI Index inside a Firm Item (or IFI). CmEnablingEnableBlockItem.TypeList specifies the type of the used enabling. This can be one of the following flags:
SimplePin contains the data when the EBI is using SimplePin enabling (see class
TimePin contains the data when the EBI is using TimePin enabling (see class
|
Class
CmEnablingEnableBlockItemList
Class CmEnablingEnableBlockItemList CmEnablingEnableBlockItemList contains data of a Enable Block Items (EBI) when they are read out of the CmContainer. Syntax
Parameter musOption specifies the following flags. CM_AC_VALID specifies that the enabling block item is a valid structure. CM_AC_DISABLED specifies that the Disabling Flag of the Enabling Block Item is set and the block is permanently disabled. CM_AC_TEMPENABLED specifies that the Enabling Block Item is temporarily enabled, independently of the static Enabling Status of the EBI. This option is only permitted if the EBI is owned by the IFI (Implicit Firm Item). mbIndex specifies the EBI Index inside a Firm Item (or IFI). mbType specifies the type of the used enabling. This can be one of the following flags: CM_EBI_SIMPLEPIN specifies that Simple Pin enabling is used. CM_EBI_TIMEPIN specifies that Time Pin enabling is used. mcmSimplePin contains the data when the EBI is using SimplePin enabling (see
mcmTimePin contains the data when the EBI is using TimePin enabling (see structure
Note On Windows the mausText array can be simply casted to a wchar_t array, because on Windows wchar_t is a 16 Bit value. On macOS and Linux the whole array must be converted byte by byte to a wchar_t array because here wchar_t has is 32 Bit long by default.
|
Class
CmEnablingEnableLookupEntry.
Class CmEnablingEnableLookupEntry CmEnablingEnableLookupEntry defines a single Enabling Lookup Entry Item (ELI). Syntax
Parameter CmEnablingEnableLookupEntry.OptionList specifies the following flags. Valid specifies that the Enabling Lookup Entry is a valid structure. This flags is always set except the end of the variable-length Enabling Lookup Entry list is reached and 0x0000 is stored. For the an attach or detach request sequence, this flag is ignored. Ifi specifies that the Enabling Block Item of the IFI is used and not of the owning Firm Item. Required specifies that this lookup entry must permit the operation independent to other settings. EnableBlockIndex contains the index of the EBI. EnableLevel Enabled specifies the Enable Level. This can be one of the following flags. Locate only the reading of the Firm Code, the Product Code, the Enabling Block Table and the Enabling Lookup Table is permitted. Read the reading of the Firm Item or Product Item is permitted but no operations. Encrypt encryption, decryption and signature calculation is permitted but not with modification of the Unit Counter. UUInitUse encryption, decryption and signature calculation may change the Unit Counter. In a Firm Item, the Firm Update Counter and the Access Counter may be changed. Modify all operations are permitted including modification of the properties by update commands. Detach must be set, if the ELI should be detached. DisableLevel specifies the Disable Level. This can be one of the following flags as described for EnableLevel: TypeList Type specifies the type of the used enabling. This can be one of the following flags: SimplePin specifies that SimplePin enabling is used. TimePin specifies that TimePin enabling is used. OptionList Option specifies the following flags. Valid specifies that the enabling block item is a valid structure. Enabled specifies that the block is permanently enabled. Disabled specifies that the Disabling Flag of the Enable Block Item is set and the block is permanently disabled. TempEnabled specifies that the Enable Block Item is temporarily enabled, independently of the static Enabling Status of the Enable Block Item. For Firmware version smaller than version 1.18 this option is only permitted, if the Enable Block Item is owned by the IFI (Implicit Firm Item = Firm Code 0). EnablingMask tba. Expired tba. Note TypeList Type and OptionList Option are available since CodeMeter Version 4.40.
|
Class
CmEnablingSimplePinList
|
CmEnablingSimplePinList describes an Enabling Block of type "Simple PIN" which is returned by the List command. Syntax
Parameter mcbEnableAccessCode contains the number of bytes which are defined in the Enable Access Code. This must be a value between 2 and 16. mabEnableAccessCode contains the Enable Access Code bytes, the length is defined by the mcbEnableAccessCode member.
|
Class
CmEnablingWriteUpdate
|
CmEnablingWriteUpdate describes the request sequence for updating a Enable Block Item (EBI) command. Syntax
Parameter mbEnableBlockIndex contains the index of the Enabling Block which is attached. The subsequent bytes are encrypted by AES-CBC or Triple-DES-CBC, the exact method depends on the type of the addressed Update Enabling Block. The sequence is padded with 0 bytes to a multiple of 16 bytes. After that the current challenge-response token (16 bytes) is appended. Then the complete sequence is encrypted by Triple-DES-CBC or AES-CBC, in dependency of the type of Enabling Block. CM_WU_FIRMKEY defines that the Firm Key is used in the required Challenge- Response Token. If this flag is not set and the Access Code is used, only, following flags may *not* be changed: CM_WU_TEXT CM_WU_IDENTITY This flag and the restricted behavior for Access Keys was introduced with Firmware version 1.05. musCtrl determines which parts are updated. This can be specified by the following flags: CM_WU_DISABLED specifies that the CM_AC_DISABLED flag in the CMENABLING_ENABLEBLOCKITEM::musOption member is defined. CM_WU_TEMPENABLED specifies that the CM_AC_TEMPENABLED flag in the CMENABLING_ENABLEBLOCKITEM::musOption member is defined. CM_WU_ACCESSCODE specifies that mcbEnableAccessCode and mabEnableAccessCode of specific CMENABLING_ENABLEBLOCKITEM::mEnableType substructures defines the new length and contents of the Enable Access Code. CM_WU_DISABLETIME specifies that mulDisabledTime of specific CMENABLING_ENABLEBLOCKITEM::mEnableType substructures defines the new Disable Time of the Enable Access Code CM_WU_TEXT specifies that mcchText and the text part of the mabEnableAccessCode member defines the new text. CM_WU_IDENTITY specifies that musIdentity of the CMENABLING_ENABLEBLOCKITEM::mEnableType::musIdentity structure defines the new Enabling Block identity. CM_WU_FULL specifies that all upper changes should be done. mulFirmUpdateCounter contains the current value of the Firm Update Counter of the Firm Item which owns the Enabling Block. mcmEnableBlockItem specifies the Enabling Block Item which is updated. The type must be identical with the accessed Enabling Block Item.
|
Not implemented.