summaryrefslogtreecommitdiffstats
path: root/ssherr.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-12-30 10:24:45 +0100
committerDamien Miller <djm@mindrot.org>2019-12-30 11:01:51 +0100
commit43ce96427b76c4918e39af654e2fc9ee18d5d478 (patch)
treedfb3a5b32e02368f9739bb742e0aa858ced03701 /ssherr.c
parentupstream: improve some error messages; ok markus@ (diff)
downloadopenssh-43ce96427b76c4918e39af654e2fc9ee18d5d478.tar.xz
openssh-43ce96427b76c4918e39af654e2fc9ee18d5d478.zip
upstream: translate and return error codes; retry on bad PIN
Define some well-known error codes in the SK API and pass them back via ssh-sk-helper. Use the new "wrong PIN" error code to retry PIN prompting during ssh-keygen of resident keys. feedback and ok markus@ OpenBSD-Commit-ID: 9663c6a2bb7a0bc8deaccc6c30d9a2983b481620
Diffstat (limited to 'ssherr.c')
-rw-r--r--ssherr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssherr.c b/ssherr.c
index 8ad3d5750..38974f51b 100644
--- a/ssherr.c
+++ b/ssherr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssherr.c,v 1.8 2018/07/03 11:39:54 djm Exp $ */
+/* $OpenBSD: ssherr.c,v 1.9 2019/12/30 09:24:45 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -141,6 +141,8 @@ ssh_err(int n)
return "number is too large";
case SSH_ERR_SIGN_ALG_UNSUPPORTED:
return "signature algorithm not supported";
+ case SSH_ERR_FEATURE_UNSUPPORTED:
+ return "requested feature not supported";
default:
return "unknown error";
}