]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: no-touch-required certificate option should be an
authordjm@openbsd.org <djm@openbsd.org>
Fri, 28 Feb 2020 01:07:28 +0000 (01:07 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 28 Feb 2020 01:27:41 +0000 (12:27 +1100)
extension, not a critical option.

OpenBSD-Commit-ID: 626b22c5feb7be8a645e4b9a9bef89893b88600d

ssh-keygen.c

index d9c207b427725fe8f76fcd2af43ec474317cac9b..b652bbbfc4f25accf7f8a4ebc826f7cf3aa58902 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.399 2020/02/26 13:40:09 jsg Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.400 2020/02/28 01:07:28 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1670,7 +1670,7 @@ prepare_options_buf(struct sshbuf *c, int which)
        if ((which & OPTIONS_EXTENSIONS) != 0 &&
            (certflags_flags & CERTOPT_USER_RC) != 0)
                add_flag_option(c, "permit-user-rc");
-       if ((which & OPTIONS_CRITICAL) != 0 &&
+       if ((which & OPTIONS_EXTENSIONS) != 0 &&
            (certflags_flags & CERTOPT_NO_REQUIRE_USER_PRESENCE) != 0)
                add_flag_option(c, "no-touch-required");
        if ((which & OPTIONS_CRITICAL) != 0 &&