diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2023-03-09 06:58:27 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2023-03-09 06:58:27 +0000 |
commit | 53858b2882c38768c09ccc0a63bda0415a6c063a (patch) | |
tree | 334ad2a3a7adf3828b41bd4085a195e13d838f8e /usr.bin | |
parent | 9ce55950990214c7d89f14363fd425788f7b5a78 (diff) |
include destination constraints for smartcard keys too.
Spotted by Luci Stanescu; ok deraadt@ markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/authfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c index 4b81b385637..e365c904af6 100644 --- a/usr.bin/ssh/authfd.c +++ b/usr.bin/ssh/authfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.c,v 1.131 2023/03/05 05:34:09 dtucker Exp $ */ +/* $OpenBSD: authfd.c,v 1.132 2023/03/09 06:58:26 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -664,7 +664,7 @@ ssh_update_card(int sock, int add, const char *reader_id, const char *pin, struct dest_constraint **dest_constraints, size_t ndest_constraints) { struct sshbuf *msg; - int r, constrained = (life || confirm); + int r, constrained = (life || confirm || dest_constraints); u_char type; if (add) { |