cookie CmLoginUvd

Description

CmLoginUvd calculates login credentials for a password stored in a Universal Data (UvD) Product Item Option (PIO). CmLoginUvd returns a 'login number', which can be used to authenticate operations performed with password-protected UvD PIOs.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmLoginUvd(HCMSysEntry hcmse, CMULONG flCtrl,
         CMUSHORT usIndex, const CMBYTE *pbPassword,
         CMUINT cbPassword);

Parameter

hcmse contains an entry access handle opened by CmAccess2.

flCtrl contains the following flags:

nav_open CM_UVD_VERIFY_PASSWORD: the given password in pbPassword will be validated.

nav_open CM_UVD_KEEP_PASSWORASSWORD: the calculated credentials should never timeout.

usIndex contains the index of the UvD password PIO.

pbPassword contains the password.

cbPassword contains the size of the password in bytes.

Return

A login number > 0 is returned in the case of success. If an error occurs, 0 is returned.

Error codes may be as follows:

•CMERROR_INVALID_HANDLE, if the used entry access handle is invalid.

•CMERROR_WRONG_HANDLE_TYPE, if the type of the handle is not a entry handle e.g. a subsystem, box or Firm Item handle.

•CMERROR_INVALID_PARAMETER, if pbPasswort == NULL.

•CMERROR_OPTIONUNDEFINED, if the value in flCtrl is invalid.

•CMERROR_INDEXINVALID, if the specified index does not refer to a UvD PIO.

•CMERROR_PRODUCTITEMOPTIONINVALID, if the specified index does not refer to a UvD PIO of type 'password'.

•CMERROR_DATATOOSHORT, if the password is smaller than 6 bytes.

•CMERROR_DATATOOLONG, if the password is bigger than 64 bytes.

•CMERROR_DATAWRONG, if CM_UVD_VERIFY_PASSWORD is set and the given password is not valid.

•CMERROR_WRONG_BOX_VERSION, if the Firmware version of the CmContainer is too old.

•CMERROR_FUNCTION_NOT_SUPPORTED , if used with CmActLicense Firm Code or CmActLicense Universal Firm Code container.

Notes

Only CmDongle is supported. A Minimum CmDongle Firmware Version of 4.40 is required.

If the flag CM_UVD_VERIFY_PASSWORD is not set, the given password is not validated, but the function returns a 'login number'.

A 'login number' is valid for a maximum of 24 hours, if CM_UVD_KEEP_PASSWORD is not set.

No method available.

 

Not implemented.