diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-01-25 23:13:09 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-01-26 10:18:42 +1100 |
commit | 59d01f1d720ebede4da42882f592d1093dac7adc (patch) | |
tree | d79871dcec88b95a6df86dd6821cbdf5e467f719 /ssherr.c | |
parent | 99aa8035554ddb976348d2a9253ab3653019728d (diff) |
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
Diffstat (limited to 'ssherr.c')
-rw-r--r-- | ssherr.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssherr.c,v 1.9 2019/12/30 09:24:45 djm Exp $ */ | 1 | /* $OpenBSD: ssherr.c,v 1.10 2020/01/25 23:13:09 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2011 Damien Miller | 3 | * Copyright (c) 2011 Damien Miller |
4 | * | 4 | * |
@@ -143,6 +143,8 @@ ssh_err(int n) | |||
143 | return "signature algorithm not supported"; | 143 | return "signature algorithm not supported"; |
144 | case SSH_ERR_FEATURE_UNSUPPORTED: | 144 | case SSH_ERR_FEATURE_UNSUPPORTED: |
145 | return "requested feature not supported"; | 145 | return "requested feature not supported"; |
146 | case SSH_ERR_DEVICE_NOT_FOUND: | ||
147 | return "device not found"; | ||
146 | default: | 148 | default: |
147 | return "unknown error"; | 149 | return "unknown error"; |
148 | } | 150 | } |