Skip more untrusted certificates. · curl/curl@51f0b79 (original) (raw)

Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
26 26 '* Hacked by Guenter Knauf
27 27 '***************************************************************************
28 28 Option Explicit
29 -Const myVersion = "0.3.7"
29 +Const myVersion = "0.3.8"
30 30
31 31 Const myUrl = "http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1"
32 32
@@ -131,7 +131,8 @@ For i = 0 To UBound(myLines)
131 131 While (i < UBound(myLines)) And Not (myLines(i) = "#")
132 132 i = i + 1
133 133 If (InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_NOT_TRUSTED") Or _
134 -InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUST_UNKNOWN")) Then
134 +InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUST_UNKNOWN") Or _
135 +InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_MUST_VERIFY_TRUST")) Then
135 136 myUntrusted = TRUE
136 137 End If
137 138 Wend