Waiting till post MR0 - this impacts signing tools for MR0.
Revert "Modify release tools to replace certs in MMAC files."
This reverts commit a6e0466ab5
.
Change-Id: Ib7819185bad119013f307ce4301d5f02190e14ed
This commit is contained in:
@@ -954,18 +954,3 @@ def GetTypeAndDevice(mount_point, info):
|
||||
return PARTITION_TYPES[fstab[mount_point].fs_type], fstab[mount_point].device
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
def ParseCertificate(data):
|
||||
"""Parse a PEM-format certificate."""
|
||||
cert = []
|
||||
save = False
|
||||
for line in data.split("\n"):
|
||||
if "--END CERTIFICATE--" in line:
|
||||
break
|
||||
if save:
|
||||
cert.append(line)
|
||||
if "--BEGIN CERTIFICATE--" in line:
|
||||
save = True
|
||||
cert = "".join(cert).decode('base64')
|
||||
return cert
|
||||
|
Reference in New Issue
Block a user