Please enable JavaScript to view this site.

Navigation: Linkar CLIENTS > C auxiliary Functions

LkGetDataFromCredentialsOptions

Scroll Prev Top Next More

Function that extracts a specified element from an encoded string of credentials.

 

credentialsOptions

char*

 

String that contains the different elements that make up the credentials.

index

uint32_t

 

Number representing the element to be extracted from the credentials.

 

Using this function, you can extract each of the elements that make up the credentials from the credentials string created with the C function LkCreateCredentialsOptions,

 

The following symbolic constants (defined in LinkarClientC.h) can be used to reference each of the elements that make up the credentials.

 

#define CRD_OPTIONS_HOST 0

#define CRD_OPTIONS_PORT 1

#define CRD_OPTIONS_ENTRYPOINT 2

#define CRD_OPTIONS_USERNAME 3

#define CRD_OPTIONS_PASSWORD 4

#define CRD_OPTIONS_LANGUAGE 5

#define CRD_OPTIONS_FREETEXT 6

 

       C