gwenhywfar 4.0.3
|
#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.
typedef struct GWEN_CRYPT_TOKEN_CONTEXT GWEN_CRYPT_TOKEN_CONTEXT |
Definition at line 27 of file ct_context.h.
GWENHYWFAR_API void GWEN_Crypt_Token_Context_Attach | ( | GWEN_CRYPT_TOKEN_CONTEXT * | p_struct | ) |
Definition at line 75 of file ct_context.c.
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_dup | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | p_struct | ) |
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().
GWENHYWFAR_API 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.
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_fromDb | ( | GWEN_DB_NODE * | p_db | ) |
Definition at line 621 of file ct_context.c.
References GWEN_Crypt_Token_Context_new(), and GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_fromXml | ( | GWEN_XMLNODE * | p_db | ) |
Definition at line 777 of file ct_context.c.
References GWEN_Crypt_Token_Context_new(), and GWEN_Crypt_Token_Context_ReadXml().
GWENHYWFAR_API 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().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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.
GWENHYWFAR_API 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.
GWENHYWFAR_API 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.
GWENHYWFAR_API 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().
GWENHYWFAR_API 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().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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().
GWENHYWFAR_API 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().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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().
GWENHYWFAR_API 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().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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().
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 784 of file ct_context.c.
References NULL.
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_new | ( | ) |
Constructor.
Definition at line 25 of file ct_context.c.
References GWEN_INHERIT_INIT, GWEN_LIST_INIT, GWEN_NEW_OBJECT, and NULL.
Referenced by GWEN_Crypt_Token_Context_dup(), GWEN_Crypt_Token_Context_fromDb(), GWEN_Crypt_Token_Context_fromXml(), and GWEN_CTF_Context_new().
GWENHYWFAR_API 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().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_ReadXml | ( | GWEN_CRYPT_TOKEN_CONTEXT * | p_struct, |
GWEN_XMLNODE * | p_db | ||
) |
Definition at line 632 of file ct_context.c.
References GWEN_XMLNode_GetCharValue(), GWEN_XMLNode_GetIntValue(), and NULL.
Referenced by GWEN_Crypt_Token_Context_fromXml().
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 364 of file ct_context.c.
References NULL.
Referenced by GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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.
GWENHYWFAR_API 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.
GWENHYWFAR_API 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.
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 259 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 338 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 351 of file ct_context.c.
References NULL.
GWENHYWFAR_API 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().
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 299 of file ct_context.c.
References NULL.
Referenced by GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API 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.
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 382 of file ct_context.c.
References NULL.
Referenced by GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API 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.
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 312 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 325 of file ct_context.c.
References NULL.
Referenced by GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API 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.
GWENHYWFAR_API 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().
GWENHYWFAR_API 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().
GWENHYWFAR_API int GWEN_Crypt_Token_Context_WriteDb | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | p_struct, |
GWEN_DB_NODE * | p_db | ||
) |
Definition at line 502 of file ct_context.c.
References DBG_INFO, GWEN_DB_DeleteVar(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_DB_SetIntValue(), and GWEN_LOGDOMAIN.
Referenced by GWEN_Crypt_Token_Context_toDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_WriteXml | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | p_struct, |
GWEN_XMLNODE * | p_db | ||
) |
Definition at line 721 of file ct_context.c.
References GWEN_XMLNode_SetCharValue(), and GWEN_XMLNode_SetIntValue().
Referenced by GWEN_Crypt_Token_Context_toXml().