4538af
diff -up gnupg-2.2.16/sm/certlist.c.keyusage gnupg-2.2.16/sm/certlist.c
4538af
--- gnupg-2.2.16/sm/certlist.c.keyusage	2019-07-01 17:17:06.925254065 +0200
4538af
+++ gnupg-2.2.16/sm/certlist.c	2019-07-01 17:24:15.665759322 +0200
4538af
@@ -147,10 +147,9 @@ cert_usage_p (ksba_cert_t cert, int mode
4538af
 
4538af
   if (mode == 5)
4538af
     {
4538af
-      if (use != ~0
4538af
-          && (have_ocsp_signing
4538af
-              || (use & (KSBA_KEYUSAGE_KEY_CERT_SIGN
4538af
-                         |KSBA_KEYUSAGE_CRL_SIGN))))
4538af
+      if (have_ocsp_signing
4538af
+          || (use & (KSBA_KEYUSAGE_KEY_CERT_SIGN
4538af
+                     |KSBA_KEYUSAGE_CRL_SIGN)))
4538af
         return 0;
4538af
       if (!silent)
4538af
         log_info (_("certificate should not have "