CJOSE
0.6.0
|
Datatypes and functions for error reporting. More...
Go to the source code of this file.
Classes | |
struct | cjose_err |
Macros | |
#define | GCC_BEGIN_IGNORED_WARNING_ADDRESS |
#define | GCC_END_IGNORED_WARNING_ADDRESS |
#define | CJOSE_ERROR(err, errcode) |
Enumerations | |
enum | cjose_errcode { CJOSE_ERR_NONE = 0, CJOSE_ERR_INVALID_ARG, CJOSE_ERR_INVALID_STATE, CJOSE_ERR_NO_MEMORY, CJOSE_ERR_CRYPTO } |
Functions | |
const char * | cjose_err_message (cjose_errcode code) |
Datatypes and functions for error reporting.
Copyrights
Portions created or assigned to Cisco Systems, Inc. are Copyright (c) 2014-2016 Cisco Systems, Inc. All Rights Reserved.
#define CJOSE_ERROR | ( | err, | |
errcode | |||
) |
Macro to initialize an error context.
err | The pointer to the error context, or NULL if none |
errcode | The error code |
#define GCC_BEGIN_IGNORED_WARNING_ADDRESS |
Temporarily disable compiler warnings, if possible (>=gcc-4.6).
In some cases (particularly within macros), certain compiler warnings are unavoidable. In order to allow these warnings to be treated as errors in most cases, these macros will disable particular warnings only during specific points in the compilation.
enum cjose_errcode |
const char* cjose_err_message | ( | cjose_errcode | code | ) |
Retrieves the error message for the given error code.
code | The error code to lookup |
const | char * The message for {code} |