#include <yubihsm.h>
#include <stddef.h>
Go to the source code of this file.
◆ ERR
#define ERR |
( |
| name, |
|
|
| desc ) |
Value:
Definition at line 21 of file error.c.
21#define ERR(name, desc) \
22 { name, desc }
◆ yh_strerror()
const char * yh_strerror |
( |
yh_rc | err | ) |
|
Return a string describing an error condition
- Parameters
-
- Returns
- String with descriptive error
Definition at line 65 of file error.c.
65 {
66 static const char *
unknown =
"Unknown yubihsm error";
68
69 if (-err < 0 || -err >= (int) (sizeof(errors) / sizeof(errors[0]))) {
71 }
72
76 }
77
79}