Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/utils.py

Issue 29322523: Issue 2796 - Moved logic to extract Safari Developer ID to buildtools (Closed)
Patch Set: Updated dependency Created July 17, 2015, 11:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/extensions/bin/updateUpdateManifests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/utils.py
===================================================================
--- a/sitescripts/extensions/utils.py
+++ b/sitescripts/extensions/utils.py
@@ -245,25 +245,6 @@
if repositoryName:
yield Configuration(config, nightlyConfig, repositoryName, value)
-def getSafariCertificateID(keyFile):
- import M2Crypto
-
- bio = M2Crypto.BIO.openfile(keyFile)
- try:
- while True:
- try:
- cert = M2Crypto.X509.load_cert_bio(bio)
- except M2Crypto.X509.X509Error:
- raise Exception('No safari developer certificate found in chain')
-
- subject = cert.get_subject()
- for entry in subject.get_entries_by_nid(subject.nid['CN']):
- m = re.match(r'Safari Developer: \((.*?)\)', entry.get_data().as_text())
- if m:
- return m.group(1)
- finally:
- bio.close()
-
def _urlencode(value):
return urllib.quote(value.encode('utf-8'), '')
« no previous file with comments | « sitescripts/extensions/bin/updateUpdateManifests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld