From 59d01f1d720ebede4da42882f592d1093dac7adc Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Sat, 25 Jan 2020 23:13:09 +0000 Subject: upstream: improve the error message for u2f enrollment errors by making ssh-keygen be solely responsible for printing the error message and convertint some more common error responses from the middleware to a useful ssherr.h status code. more detail remains visible via -v of course. also remove indepedent copy of sk-api.h declarations in sk-usbhid.c and just include it. feedback & ok markus@ OpenBSD-Commit-ID: a4a8ffa870d9a3e0cfd76544bcdeef5c9fb1f1bb --- PROTOCOL.u2f | 1 + 1 file changed, 1 insertion(+) (limited to 'PROTOCOL.u2f') diff --git a/PROTOCOL.u2f b/PROTOCOL.u2f index fd0cd0de..58f75ba2 100644 --- a/PROTOCOL.u2f +++ b/PROTOCOL.u2f @@ -249,6 +249,7 @@ The middleware library need only expose a handful of functions: #define SSH_SK_ERR_GENERAL -1 #define SSH_SK_ERR_UNSUPPORTED -2 #define SSH_SK_ERR_PIN_REQUIRED -3 + #define SSH_SK_ERR_DEVICE_NOT_FOUND -4 struct sk_enroll_response { uint8_t *public_key; -- cgit v1.2.3