From cf4527172cc7dc3f83dd81e16aeb424c88dd6ac5 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Thu, 17 Sep 2015 12:13:53 -0400 Subject: [PATCH] misc/ios: skip revoked certificates Change-Id: If65e5e55b359a61740d2ef185147bb6df90e0b0c Reviewed-on: https://go-review.googlesource.com/14654 Reviewed-by: Hyang-Ah Hana Kim --- misc/ios/detect.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/ios/detect.go b/misc/ios/detect.go index d3054581083..53749ad371d 100644 --- a/misc/ios/detect.go +++ b/misc/ios/detect.go @@ -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]) }