gwenhywfar  4.8.0beta
Functions
ct_context.c File Reference
#include "ct_context_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>

Go to the source code of this file.

Functions

void GWEN_Crypt_Token_Context_Attach (GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_Token_Context_dup (const GWEN_CRYPT_TOKEN_CONTEXT *p_src)
void GWEN_Crypt_Token_Context_free (GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_Token_Context_fromDb (GWEN_DB_NODE *p_db)
GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_Token_Context_fromXml (GWEN_XMLNODE *p_db)
const char * GWEN_Crypt_Token_Context_GetAddress (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetAuthSignKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetAuthVerifyKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetCustomerId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetDecipherKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetEncipherKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetPeerId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetPeerName (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
int GWEN_Crypt_Token_Context_GetPort (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetServiceId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetSignKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetSystemId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetTempSignKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetUserId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
const char * GWEN_Crypt_Token_Context_GetUserName (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
uint32_t GWEN_Crypt_Token_Context_GetVerifyKeyId (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct)
GWEN_CRYPT_TOKEN_CONTEXT_LIST * GWEN_Crypt_Token_Context_List_dup (const GWEN_CRYPT_TOKEN_CONTEXT_LIST *p_src)
GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_Token_Context_List_GetById (const GWEN_CRYPT_TOKEN_CONTEXT_LIST *p_list, uint32_t p_cmp)
GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_Token_Context_new (void)
void GWEN_Crypt_Token_Context_ReadDb (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, GWEN_DB_NODE *p_db)
void GWEN_Crypt_Token_Context_ReadXml (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, GWEN_XMLNODE *p_db)
void GWEN_Crypt_Token_Context_SetAddress (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetAuthSignKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetAuthVerifyKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetCustomerId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetDecipherKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetEncipherKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetPeerId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetPeerName (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetPort (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, int p_src)
void GWEN_Crypt_Token_Context_SetServiceId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetSignKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetSystemId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetTempSignKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
void GWEN_Crypt_Token_Context_SetUserId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetUserName (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, const char *p_src)
void GWEN_Crypt_Token_Context_SetVerifyKeyId (GWEN_CRYPT_TOKEN_CONTEXT *p_struct, uint32_t p_src)
int GWEN_Crypt_Token_Context_toDb (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct, GWEN_DB_NODE *p_db)
void GWEN_Crypt_Token_Context_toXml (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct, GWEN_XMLNODE *p_db)
int GWEN_Crypt_Token_Context_WriteDb (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct, GWEN_DB_NODE *p_db)
void GWEN_Crypt_Token_Context_WriteXml (const GWEN_CRYPT_TOKEN_CONTEXT *p_struct, GWEN_XMLNODE *p_db)

Function Documentation

void GWEN_Crypt_Token_Context_Attach ( GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Definition at line 77 of file ct_context.c.

GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_dup ( const GWEN_CRYPT_TOKEN_CONTEXT p_src)

Definition at line 83 of file ct_context.c.

References GWEN_Crypt_Token_Context_new(), and NULL.

Referenced by GWEN_Crypt_Token_Context_List_dup().

void GWEN_Crypt_Token_Context_free ( GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Destructor.

Definition at line 54 of file ct_context.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, and GWEN_LIST_FINI.

GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_fromDb ( GWEN_DB_NODE p_db)
GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_fromXml ( GWEN_XMLNODE p_db)
const char* GWEN_Crypt_Token_Context_GetAddress ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "address"

Definition at line 260 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

uint32_t GWEN_Crypt_Token_Context_GetAuthSignKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "authSignKeyId"

Definition at line 215 of file ct_context.c.

uint32_t GWEN_Crypt_Token_Context_GetAuthVerifyKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "authVerifyKeyId"

Definition at line 220 of file ct_context.c.

const char* GWEN_Crypt_Token_Context_GetCustomerId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "customerId"

Definition at line 240 of file ct_context.c.

uint32_t GWEN_Crypt_Token_Context_GetDecipherKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "decipherKeyId"

Definition at line 210 of file ct_context.c.

uint32_t GWEN_Crypt_Token_Context_GetEncipherKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "encipherKeyId"

Definition at line 205 of file ct_context.c.

uint32_t GWEN_Crypt_Token_Context_GetId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "id"

Definition at line 190 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__GetContext(), GWEN_Crypt_TokenFile__SetContext(), and GWEN_Crypt_TokenFile__Sign().

const char* GWEN_Crypt_Token_Context_GetPeerId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "peerId"

Definition at line 250 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

const char* GWEN_Crypt_Token_Context_GetPeerName ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "peerName"

Definition at line 255 of file ct_context.c.

int GWEN_Crypt_Token_Context_GetPort ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "port"

Definition at line 265 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

const char* GWEN_Crypt_Token_Context_GetServiceId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "serviceId"

Definition at line 230 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

uint32_t GWEN_Crypt_Token_Context_GetSignKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "signKeyId"

Definition at line 195 of file ct_context.c.

const char* GWEN_Crypt_Token_Context_GetSystemId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "systemId"

Definition at line 270 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

uint32_t GWEN_Crypt_Token_Context_GetTempSignKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "tempSignKeyId"

Definition at line 225 of file ct_context.c.

const char* GWEN_Crypt_Token_Context_GetUserId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "userId"

Definition at line 235 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

const char* GWEN_Crypt_Token_Context_GetUserName ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "userName"

Definition at line 245 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

uint32_t GWEN_Crypt_Token_Context_GetVerifyKeyId ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct)

Getter. Use this function to get the member "verifyKeyId"

Definition at line 200 of file ct_context.c.

GWEN_CRYPT_TOKEN_CONTEXT_LIST* GWEN_Crypt_Token_Context_List_dup ( const GWEN_CRYPT_TOKEN_CONTEXT_LIST *  p_src)

Definition at line 424 of file ct_context.c.

References GWEN_Crypt_Token_Context_dup().

GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_List_GetById ( const GWEN_CRYPT_TOKEN_CONTEXT_LIST *  p_list,
uint32_t  p_cmp 
)

Definition at line 843 of file ct_context.c.

References NULL.

GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_new ( void  )
void GWEN_Crypt_Token_Context_ReadDb ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 442 of file ct_context.c.

References GWEN_DB_GetCharValue(), GWEN_DB_GetIntValue(), and NULL.

Referenced by GWEN_Crypt_Token_Context_fromDb().

void GWEN_Crypt_Token_Context_ReadXml ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
GWEN_XMLNODE p_db 
)
void GWEN_Crypt_Token_Context_SetAddress ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "address"

Definition at line 393 of file ct_context.c.

References NULL.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetAuthSignKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "authSignKeyId"

Definition at line 300 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetAuthVerifyKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "authVerifyKeyId"

Definition at line 305 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetCustomerId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "customerId"

Definition at line 341 of file ct_context.c.

References NULL.

void GWEN_Crypt_Token_Context_SetDecipherKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "decipherKeyId"

Definition at line 295 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetEncipherKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "encipherKeyId"

Definition at line 290 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "id"

Definition at line 275 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetPeerId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "peerId"

Definition at line 367 of file ct_context.c.

References NULL.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetPeerName ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "peerName"

Definition at line 380 of file ct_context.c.

References NULL.

void GWEN_Crypt_Token_Context_SetPort ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
int  p_src 
)

Setter. Use this function to set the member "port"

Definition at line 406 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetServiceId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "serviceId"

Definition at line 315 of file ct_context.c.

References NULL.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetSignKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "signKeyId"

Definition at line 280 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetSystemId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "systemId"

Definition at line 411 of file ct_context.c.

References NULL.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetTempSignKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "tempSignKeyId"

Definition at line 310 of file ct_context.c.

void GWEN_Crypt_Token_Context_SetUserId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "userId"

Definition at line 328 of file ct_context.c.

References NULL.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetUserName ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
const char *  p_src 
)

Setter. Use this function to set the member "userName"

Definition at line 354 of file ct_context.c.

References NULL.

Referenced by GWEN_Crypt_TokenFile__SetContext().

void GWEN_Crypt_Token_Context_SetVerifyKeyId ( GWEN_CRYPT_TOKEN_CONTEXT p_struct,
uint32_t  p_src 
)

Setter. Use this function to set the member "verifyKeyId"

Definition at line 285 of file ct_context.c.

int GWEN_Crypt_Token_Context_toDb ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct,
GWEN_DB_NODE p_db 
)

Definition at line 670 of file ct_context.c.

References GWEN_Crypt_Token_Context_WriteDb().

void GWEN_Crypt_Token_Context_toXml ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct,
GWEN_XMLNODE p_db 
)

Definition at line 832 of file ct_context.c.

References GWEN_Crypt_Token_Context_WriteXml().

int GWEN_Crypt_Token_Context_WriteDb ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct,
GWEN_DB_NODE p_db 
)
void GWEN_Crypt_Token_Context_WriteXml ( const GWEN_CRYPT_TOKEN_CONTEXT p_struct,
GWEN_XMLNODE p_db 
)