]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: include destination constraints for smartcard keys too.
authordjm@openbsd.org <djm@openbsd.org>
Thu, 9 Mar 2023 06:58:26 +0000 (06:58 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 9 Mar 2023 07:32:48 +0000 (18:32 +1100)
Spotted by Luci Stanescu; ok deraadt@ markus@

OpenBSD-Commit-ID: add879fac6903a1cb1d1e42c4309e5359c3d870f

authfd.c

index 13f9432efb3bfa8cf36426ba94b13f549a077a23..77dc3cce59750b6bd666539dda10b345126016ae 100644 (file)
--- 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) {