Chapter 4 Details of Crypto-C Functions 321
B_GetExtendedErrorInfo
B_GetExtendedErrorInfo
Description
B_GetExtendedErrorInfo sets
errorDataItem->data
to point at the error data, and
errorDataItem->len
to the length in bytes of the error data. AM is set to the address of
the algorithm method that originated the error, if any.
Notes:
A NULL extended error is indicated by a length of zero. The error data may in reality be
a data structure that includes pointers to allocated memory. These allocations are
cleaned up using an error destruction routine assigned during the creation of the
extended error data.
Return value
There is no return value.
void B_GetExtendedErrorInfo (
B_ALGORITHM_OBJ algorithmObj, /* algorithm object */
ITEM *errorDataItem, /* returns pointer to error data */
/* and length of data */
POINTER *AM /* Set to point at method table */
);