Also skip certs masked as CKT_NSS_TRUST_UNKNOWN.
authorGuenter Knauf <lists@gknw.net>
Tue, 20 Sep 2011 10:05:31 +0000 (12:05 +0200)
committerGuenter Knauf <lists@gknw.net>
Tue, 20 Sep 2011 10:05:31 +0000 (12:05 +0200)
Fix posted by Tomas Hoger <thoger redhat com>.

lib/mk-ca-bundle.pl

index 868e238..189ed01 100755 (executable)
@@ -160,7 +160,8 @@ while (<TXT>) {
     }
     while (<TXT>) {
       last if (/^#$/);
-      $untrusted = 1 if (/^CKA_TRUST_SERVER_AUTH\s+CK_TRUST\s+CKT_NSS_NOT_TRUSTED$/);
+      $untrusted = 1 if (/^CKA_TRUST_SERVER_AUTH\s+CK_TRUST\s+CKT_NSS_NOT_TRUSTED$/
+                     or /^CKA_TRUST_SERVER_AUTH\s+CK_TRUST\s+CKT_NSS_TRUST_UNKNOWN$/);
     }
     if ($untrusted) {
       $skipnum ++;