if (_salt_len == 0) {
/* There was no randomness files, so don't do
* anything */
- ykp_errno = YKP_EINVAL;
+ ykp_errno = YKP_ENORANDOM;
return 0;
}
"too old yubikey for this operation",
"invalid configuration number (this is a programming error)",
"invalid option/argument value",
+ "no randomness source available",
};
const char *ykp_strerror(int errnum)
{
#define YKP_EOLDYUBIKEY 0x04
#define YKP_EINVCONFNUM 0x05
#define YKP_EINVAL 0x06
+#define YKP_ENORANDOM 0x07
# ifdef __cplusplus
}