gwenhywfar 4.0.3
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)
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 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_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 75 of file ct_context.c.

GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_dup ( const GWEN_CRYPT_TOKEN_CONTEXT p_src)

Definition at line 81 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 53 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 244 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 204 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 209 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 199 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 194 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 179 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 234 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 239 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 249 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 219 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 184 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 254 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 214 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 224 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 229 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 189 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 395 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 784 of file ct_context.c.

References NULL.

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

Definition at line 413 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 364 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 284 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 289 of file ct_context.c.

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 279 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 274 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 259 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 338 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 351 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 377 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 299 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 264 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 382 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 294 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 312 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 325 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 269 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 628 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 773 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 
)