The Surrender Function

Surrender

The surrender function callback must have the following form:

int (*Surrender) (

 

POINTER handle

/* application-specific information */

);

 

 

 

Surrender is a developer-supplied function that actually performs the tasks required by the application. handle is the application-specific handle from the surrender context.

Surrender should return 0 for Crypto-C to continue its operation or a non-zero value for Crypto-C to cancel its operation.

Return value

0

continue with operation

non-zero

cancel operation

C h a p t e r 1 I n t r o d u c t i o n

13

Page 23
Image 23
RSA Security 5 manual Surrender function callback must have the following form, Continue with operation