| RSA BSAFE Cert-C |
Certificate Components for C |
| Crypto-C 6.2.1 Developer's Guide | ||
| Search |
An application can use this structure to store any kind of application-defined data in a LIST_OBJ, even though Cert-C does not know the type of data structure the application requires. The application must set up the AllocAndCopy and Destructor callback functions to handle the type of data structure that it is using. These callback functions must recognize the type of data structure in value without being informed by the Cert-C function that passes the value to the callback. An application can use the AllocAndCopy feature to insert application-defined values into a list object.
saltname.c, and userextn.c.
#include <certlist.h>
typedef struct LIST_OBJ_ENTRY_HANDLER { int (*AllocAndCopy) ( POINTER *newValue, POINTER value); VALUE_DESTRUCTOR Destructor; } LIST_OBJ_ENTRY_HANDLER;
Data Fields | |
| int(* | AllocAndCopy )(POINTER *newValue, POINTER value) |
Allocates and copies the information given in value, then sets the pointer to the duplication in newValue. More... | |
| VALUE_DESTRUCTOR | Destructor |
Deallocates the value that was allocated by the AllocAndCopy callback, freeing all memory associated with it. More... | |
|
|
Allocates and copies the information given in
|
|
|
Deallocates the |