From 0ce410a62970237823902b30fd851778f09dc089 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Mon, 5 Aug 2013 13:02:27 +0200 Subject: Simplify check for trusted certificates. This changes the previous check for untrusted certs to a check for certs explicitely marked as trusted. The change is backward-compatible (tested with certdata.txt v1.80). --- lib/mk-ca-bundle.vbs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/mk-ca-bundle.vbs') diff --git a/lib/mk-ca-bundle.vbs b/lib/mk-ca-bundle.vbs index a8b2358a1..d86807929 100755 --- a/lib/mk-ca-bundle.vbs +++ b/lib/mk-ca-bundle.vbs @@ -130,10 +130,8 @@ For i = 0 To UBound(myLines) myInsideCert = FALSE While (i < UBound(myLines)) And Not (myLines(i) = "#") i = i + 1 - If (InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_NOT_TRUSTED") Or _ - InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUST_UNKNOWN") Or _ - InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_MUST_VERIFY_TRUST")) Then - myUntrusted = TRUE + If InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUSTED_DELEGATOR") Then + myUntrusted = FALSE End If Wend If (myUntrusted = TRUE) Then @@ -183,7 +181,7 @@ For i = 0 To UBound(myLines) End If If InstrRev(myLines(i), "CKA_VALUE MULTILINE_OCTAL") Then myInsideCert = TRUE - myUntrusted = FALSE + myUntrusted = TRUE myData = "" End If If InstrRev(myLines(i), "***** BEGIN LICENSE BLOCK *****") Then -- cgit v1.2.3