Lines Matching refs:cert
89 def GetCertSubject(cert): argument
93 out, err = p.communicate(cert)
107 def Add(self, cert, name=None): argument
108 if cert in self.certs:
110 self.certs[cert] = self.certs[cert] + "," + name
113 name = "unknown cert %s (%s)" % (common.sha1(cert).hexdigest()[:12],
114 GetCertSubject(cert))
115 self.certs[cert] = name
117 def Get(self, cert): argument
119 return self.certs.get(cert, None)
132 cert = common.ParseCertificate(f.read())
136 self.Add(cert, name)
157 cert = common.ParseCertificate(out)
158 if not cert:
161 return cert
190 cert = CertFromPKCS7(pkcs7, info.filename)
191 out.add(cert)
192 ALL_CERTS.Add(cert)
281 for cert in apk.certs:
282 print " ", ALL_CERTS.Get(cert)
293 name = ALL_CERTS.Get(apk.cert)
303 for cert in apk.certs:
304 by_cert.setdefault(cert, []).append((apk.package, apk))
309 for _, cert in order:
310 print "%s:" % (ALL_CERTS.Get(cert),)
311 apks = by_cert[cert]