gwenhywfar  4.3.1
Typedefs | Functions
ct_context.h File Reference
#include <gwenhywfar/types.h>
#include <gwenhywfar/list1.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/xml.h>

Go to the source code of this file.

Typedefs

typedef struct
GWEN_CRYPT_TOKEN_CONTEXT 
GWEN_CRYPT_TOKEN_CONTEXT

Functions

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

Typedef Documentation

Definition at line 27 of file ct_context.h.


Function Documentation

Definition at line 77 of file ct_context.c.

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().

Destructor.

Definition at line 54 of file ct_context.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, and GWEN_LIST_FINI.

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

Definition at line 260 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 215 of file ct_context.c.

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

Definition at line 220 of file ct_context.c.

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

Definition at line 240 of file ct_context.c.

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

Definition at line 210 of file ct_context.c.

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

Definition at line 205 of file ct_context.c.

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().

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

Definition at line 250 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 255 of file ct_context.c.

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

Definition at line 265 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 230 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 195 of file ct_context.c.

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

Definition at line 270 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 225 of file ct_context.c.

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

Definition at line 235 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 245 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

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

Definition at line 200 of file ct_context.c.

GWENHYWFAR_API 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().

GWENHYWFAR_API 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.

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().

GWENHYWFAR_API 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().

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

Definition at line 300 of file ct_context.c.

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

Definition at line 305 of file ct_context.c.

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

Definition at line 341 of file ct_context.c.

References NULL.

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

Definition at line 295 of file ct_context.c.

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

Definition at line 290 of file ct_context.c.

GWENHYWFAR_API 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.

GWENHYWFAR_API 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().

GWENHYWFAR_API 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.

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

Definition at line 406 of file ct_context.c.

Referenced by GWEN_Crypt_TokenFile__SetContext().

GWENHYWFAR_API 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().

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

Definition at line 280 of file ct_context.c.

GWENHYWFAR_API 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().

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

Definition at line 310 of file ct_context.c.

GWENHYWFAR_API 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().

GWENHYWFAR_API 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().

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

Definition at line 285 of file ct_context.c.

Definition at line 670 of file ct_context.c.

References GWEN_Crypt_Token_Context_WriteDb().

Definition at line 832 of file ct_context.c.

References GWEN_Crypt_Token_Context_WriteXml().