device: Add new FP_DEVICE_ERROR_UNTRUSTED error code

Throw a specific error when we are unable to verify the integrety of the
device.
This commit is contained in:
Benjamin Berg
2020-09-18 10:51:40 +02:00
parent 8240bf54e6
commit 24b02b943f
2 changed files with 5 additions and 0 deletions

View File

@@ -185,6 +185,9 @@ fpi_device_error_new (FpDeviceError error)
case FP_DEVICE_ERROR_TOO_HOT:
msg = "Device disabled to prevent overheating.";
case FP_DEVICE_ERROR_UNTRUSTED:
msg = "Could not verify integrity of the device, it cannot be trusted!";
break;
default: