summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2023-03-09 06:58:26 +0000
committerDarren Tucker <dtucker@dtucker.net>2023-03-09 18:32:48 +1100
commit54ac4ab2b53ce9fcb66b8250dee91c070e4167ed (patch)
tree31a2830a04d7882e4987f79f66e9bc4aec42eef2 /authfd.c
parentbfd1ad01d974a316b60622759ad17537fa2d92b4 (diff)
downloadopenssh-git-54ac4ab2b53ce9fcb66b8250dee91c070e4167ed.tar.gz
upstream: include destination constraints for smartcard keys too.
Spotted by Luci Stanescu; ok deraadt@ markus@ OpenBSD-Commit-ID: add879fac6903a1cb1d1e42c4309e5359c3d870f
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/authfd.c b/authfd.c
index 13f9432e..77dc3cce 100644
--- a/authfd.c
+++ b/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
@@ -665,7 +665,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) {