#include <gwenhywfar/db.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/types.h>
Go to the source code of this file.
typedef struct GWEN_CRYPT_TOKEN_CONTEXT GWEN_CRYPT_TOKEN_CONTEXT |
Definition at line 155 of file ct_context.h.
GWENHYWFAR_API void GWEN_Crypt_Token_Context_Attach | ( | GWEN_CRYPT_TOKEN_CONTEXT * | st | ) |
Increments the usage counter of the given object, so an additional free() is needed to destroy the object.
Definition at line 446 of file ct_context.c.
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_dup | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | st | ) |
Creates and returns a deep copy of thegiven object.
Definition at line 64 of file ct_context.c.
References GWEN_Crypt_Token_Context_new().
Referenced by GWEN_Crypt_Token_Context_List_dup().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_free | ( | GWEN_CRYPT_TOKEN_CONTEXT * | st | ) |
Destroys the given object.
Definition at line 37 of file ct_context.c.
References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, and GWEN_LIST_FINI.
Referenced by GWEN_Crypt_Token_Context_List2__freeAll_cb().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_fromDb | ( | GWEN_DB_NODE * | db | ) |
Creates an object from the data in the given GWEN_DB_NODE
Definition at line 161 of file ct_context.c.
References GWEN_Crypt_Token_Context_new(), and GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API const char* GWEN_Crypt_Token_Context_GetAddress | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_Address
Definition at line 379 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_AuthSignKeyId
Definition at line 249 of file ct_context.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_Context_GetAuthVerifyKeyId | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_AuthVerifyKeyId
Definition at line 264 of file ct_context.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_Context_GetDecipherKeyId | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_DecipherKeyId
Definition at line 234 of file ct_context.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_Context_GetEncipherKeyId | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_EncipherKeyId
Definition at line 219 of file ct_context.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_Context_GetId | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_Id
Definition at line 174 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_PeerId
Definition at line 339 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_PeerName
Definition at line 359 of file ct_context.c.
GWENHYWFAR_API int GWEN_Crypt_Token_Context_GetPort | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_Port
Definition at line 399 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_ServiceId
Definition at line 279 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_SignKeyId
Definition at line 189 of file ct_context.c.
GWENHYWFAR_API const char* GWEN_Crypt_Token_Context_GetSystemId | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_SystemId
Definition at line 414 of file ct_context.c.
Referenced by GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API const char* GWEN_Crypt_Token_Context_GetUserId | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_UserId
Definition at line 299 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_UserName
Definition at line 319 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 * | el | ) |
Returns the property GWEN_CRYPT_TOKEN_CONTEXT_VerifyKeyId
Definition at line 204 of file ct_context.c.
GWENHYWFAR_API int GWEN_Crypt_Token_Context_IsModified | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | st | ) |
Returns 0 if this object has not been modified, !=0 otherwise
Definition at line 434 of file ct_context.c.
GWENHYWFAR_API void GWEN_Crypt_Token_Context_List2_freeAll | ( | GWEN_CRYPT_TOKEN_CONTEXT_LIST2 * | stl | ) |
Destroys all objects stored in the given LIST2 and the list itself
Definition at line 456 of file ct_context.c.
References GWEN_Crypt_Token_Context_List2__freeAll_cb(), GWEN_Crypt_Token_Context_List2_ForEach(), and GWEN_Crypt_Token_Context_List2_free().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT_LIST* GWEN_Crypt_Token_Context_List_dup | ( | const GWEN_CRYPT_TOKEN_CONTEXT_LIST * | stl | ) |
Definition at line 464 of file ct_context.c.
References GWEN_Crypt_Token_Context_dup(), GWEN_Crypt_Token_Context_List_Add(), GWEN_Crypt_Token_Context_List_First(), GWEN_Crypt_Token_Context_List_new(), and GWEN_Crypt_Token_Context_List_Next().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_Context_new | ( | ) |
Creates a new object.
Definition at line 26 of file ct_context.c.
References GWEN_INHERIT_INIT, GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_Crypt_Token_Context_dup(), GWEN_Crypt_Token_Context_fromDb(), and GWEN_CTF_Context_new().
GWENHYWFAR_API int GWEN_Crypt_Token_Context_ReadDb | ( | GWEN_CRYPT_TOKEN_CONTEXT * | st, | |
GWEN_DB_NODE * | db | |||
) |
Reads data from a GWEN_DB.
Definition at line 139 of file ct_context.c.
References GWEN_Crypt_Token_Context_SetAddress(), GWEN_Crypt_Token_Context_SetAuthSignKeyId(), GWEN_Crypt_Token_Context_SetAuthVerifyKeyId(), GWEN_Crypt_Token_Context_SetDecipherKeyId(), GWEN_Crypt_Token_Context_SetEncipherKeyId(), GWEN_Crypt_Token_Context_SetId(), GWEN_Crypt_Token_Context_SetPeerId(), GWEN_Crypt_Token_Context_SetPeerName(), GWEN_Crypt_Token_Context_SetPort(), GWEN_Crypt_Token_Context_SetServiceId(), GWEN_Crypt_Token_Context_SetSignKeyId(), GWEN_Crypt_Token_Context_SetSystemId(), GWEN_Crypt_Token_Context_SetUserId(), GWEN_Crypt_Token_Context_SetUserName(), GWEN_Crypt_Token_Context_SetVerifyKeyId(), GWEN_DB_GetCharValue(), and GWEN_DB_GetIntValue().
Referenced by GWEN_Crypt_Token_Context_fromDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetAddress | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_Address
Definition at line 385 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetAuthSignKeyId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_AuthSignKeyId
Definition at line 255 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetAuthVerifyKeyId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_AuthVerifyKeyId
Definition at line 270 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetDecipherKeyId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_DecipherKeyId
Definition at line 240 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetEncipherKeyId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_EncipherKeyId
Definition at line 225 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_Id
Definition at line 180 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetModified | ( | GWEN_CRYPT_TOKEN_CONTEXT * | st, | |
int | i | |||
) |
Sets the modified state of the given object
Definition at line 440 of file ct_context.c.
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetPeerId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_PeerId
Definition at line 345 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetPeerName | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_PeerName
Definition at line 365 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetPort | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
int | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_Port
Definition at line 405 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetServiceId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_ServiceId
Definition at line 285 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetSignKeyId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_SignKeyId
Definition at line 195 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetSystemId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_SystemId
Definition at line 420 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetUserId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_UserId
Definition at line 305 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetUserName | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
const char * | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_UserName
Definition at line 325 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb(), and GWEN_Crypt_TokenFile__SetContext().
GWENHYWFAR_API void GWEN_Crypt_Token_Context_SetVerifyKeyId | ( | GWEN_CRYPT_TOKEN_CONTEXT * | el, | |
uint32_t | d | |||
) |
Set the property GWEN_CRYPT_TOKEN_CONTEXT_VerifyKeyId
Definition at line 210 of file ct_context.c.
Referenced by GWEN_Crypt_Token_Context_ReadDb().
GWENHYWFAR_API int GWEN_Crypt_Token_Context_toDb | ( | const GWEN_CRYPT_TOKEN_CONTEXT * | st, | |
GWEN_DB_NODE * | db | |||
) |
Stores an object in the given GWEN_DB_NODE
Definition at line 95 of file ct_context.c.
References GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), and GWEN_DB_SetIntValue().