Return Codes

Every Security Builder Crypto function returns an int.

The possible return codes are defined in the file sbreturn.h .

In handling return codes, your application should check against SB_SUCCESS. If SB_SUCCESS is not returned, your application should handle whichever errors it is capable of handling, and pass any other errors up to higher application layers.

The return value of a function simply indicates whether it completed successfully or not. Other output from functions is returned through pointers, the addresses of which are passed in as arguments.