AAL2GetTokenInfoEx
  • 22 Jan 2025
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

AAL2GetTokenInfoEx

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

Function prototype

aat_int32 AAL2GetTokenInfoEx (TDigipassBlob   *DPData,
                              TKernelParms    *CallParms,
                              TDigipassInfoEx *DPInfo);

Description

This function provides special, authenticator-specific operations. With this function, it is possible to extend the returned information list without changing the prototype definition. This function is deprecated and can be replaced by AAL2GetTokenProperty, which is easier to manage.

Parameters 

  Table: Parameters (AAL2GetTokenInfoEx)
TypeNameUseDescription
TDigipassBlob *DPDataIauthenticator application BLOB.
TKernelParms *CallParmsIStructure of runtime parameters to use during this function call.
TDigipassInfoEx *DPInfoI/OExtended information structure. For more information, refer to TDigipassInfoEx.

Return codes

  Table: Return codes (AAL2GetTokenInfoEx)
CodeMeaningCodeMeaning
0Success514Invalid Digipass info pointer
412Invalid checksum518Invalid property
413Invalid Base64 format1118Unsupported BLOB
510Invalid Digipass data pointer-1501Memory allocation failed

Example

TData *DPInfo;

TDigipassInfoEx *GenDPInfo;

char tokenchar token_blobRO[24 + 224 ] = "0097123456APPL 1 10AFIAAAEAAAAAA                         AAAAAAAAAAAAAAAAAAAAAAAMAAEAAAAgICAAAAC                         x4bwOmbuF3T0+lHO9rb9BXnA89lgT9T6477A6cP                         ///wAAAAAAAAAAAAAAAAAAAAAAAAAA+RmOzmh1l                         FwAAP//AAAAAERQMzAwAAAAAAAAABYAAAAm843a                         bbj4K4vdBsXEX0OA";

/* allocate structures for 3 info. */
DPInfo = (TData *) malloc(sizeof(TData) * 3);

DPInfo[0].Value = (aat_byte*)malloc(6);
DPInfo[0].Size = 0;
DPInfo[0].AllocatedSize = 6;
DPInfo[0].Type = TOKEN_MODEL;

DPInfo[1].Value = (aat_byte*)malloc(4);
DPInfo[1].Size = 0;
DPInfo[1].AllocatedSize = 4;
DPInfo[1].Type = TIME_BASED_ALGO;

DPInfo[2].Value = (aat_byte*)malloc(4);
DPInfo[2].Size = 0;
DPInfo[2].AllocatedSize = 4;
DPInfo[2].Type = STATIC_PWD_SUPPORTED;

/* create the authentication structure */
GenDPInfo = (TDigipassInfoEx*)malloc(sizeof(TDigipassInfoEx));

GenDPInfo->Info = DPInfo;
GenDPInfo->Infos = 3;
GenDPInfo->Size = 1;

AAL2GetTokenInfoEx(token_blob, 0, GenDPInfo);

In addition, requested properties can be retrieved with their integer value instead of an ASCII value.

To select the integer value output

  • Add the flag INT_VALUE to the requested property.

For more information, refer to AAL2GetTokenProperty.

AAL2GetTokenInfoEx can return the same properties as AAL2GetTokenProperty.


Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle