]> Cypherpunks repositories - gostls13.git/commitdiff
misc/ios: skip revoked certificates
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 17 Sep 2015 16:13:53 +0000 (12:13 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 17 Sep 2015 16:25:20 +0000 (16:25 +0000)
Change-Id: If65e5e55b359a61740d2ef185147bb6df90e0b0c
Reviewed-on: https://go-review.googlesource.com/14654
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
misc/ios/detect.go

index d3054581083161b794009f65057be711ffe5d694..53749ad371d90458b47ef0da51a88fb3b40e6dbe 100644 (file)
@@ -55,6 +55,9 @@ func detectDevID() string {
                if !bytes.Contains(line, []byte("iPhone Developer")) {
                        continue
                }
+               if bytes.Contains(line, []byte("REVOKED")) {
+                       continue
+               }
                fields := bytes.Fields(line)
                return string(fields[1])
        }