Enum caprock_error_code

Enum Documentation

enum caprock_error_code

All valid values for caprock_error_t are defined in this enumeration.

Values:

enumerator CAPROCK_ERR_SUCCESS

No error

enumerator CAPROCK_ERR_UNEXPECTED

An unexpected error occurred. This should only be returned from code branches that should never be reached, and indicates a bug in the library.

enumerator CAPROCK_ERR_INVALID_VALUE

Similar to POSIX EINVAL, an invalid parameter was provided.

enumerator CAPROCK_ERR_INVALID_KEY

Tried to create a cryptographic key from invalid input data.

enumerator CAPROCK_ERR_VALIDATION

Could not validate a token with a given key; this may mean that the token was signed with a different key, or that the signature is invalid. We cannot distinguish this further.

enumerator CAPROCK_ERR_CODEC

An error occurred when encoding or deciding values.

enumerator CAPROCK_ERR_OUT_OF_MEMORY

Similar to POSIX ENOMEM, we reached a condition where there was insufficient memory available.

enumerator CAPROCK_ERR_ITERATION_END

An iterator had no more data, and iteration ended.

enumerator CAPROCK_ERROR_LAST
enumerator CAPROCK_START_USER_RANGE