]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
add check for fido_cred_set_prot() to configure
authorDamien Miller <djm@mindrot.org>
Fri, 3 Jul 2020 05:28:27 +0000 (15:28 +1000)
committerDamien Miller <djm@mindrot.org>
Fri, 3 Jul 2020 05:28:27 +0000 (15:28 +1000)
configure.ac

index d6edb24f23dba1b2d97d1294979479a0ea8483ef..c03db273240fc51aeef334bb1203cc2a86f1a555 100644 (file)
@@ -3176,6 +3176,9 @@ if test "x$enable_sk" = "xyes" -a "x$enable_sk_internal" = "xyes" ; then
                ], [ AC_MSG_ERROR([no usable libfido2 found]) ],
                [ $OTHERLIBS ]
        )
+       AC_CHECK_LIB([fido2], [fido_cred_set_prot], [],
+               [ AC_MSG_ERROR([libfido2 missing fido_cred_set_prot; please use libfido2 >= 1.4.0]) ],
+       )
        AC_CHECK_HEADER([fido.h], [],
                AC_MSG_ERROR([missing fido.h from libfido2]))
        AC_CHECK_HEADER([fido/credman.h], [],