示例#1
0
 def _get_signature_details(self):
     with zipfile.ZipFile(self.file_.current_file_path, mode='r') as zobj:
         info = signing.SignatureInfo(zobj.read('META-INF/mozilla.rsa'))
         manifest = force_text(zobj.read('META-INF/manifest.mf'))
         return info, manifest
示例#2
0
 def test_loading_reading_string(self):
     info = signing.SignatureInfo(self.pkcs7)
     assert isinstance(info.content, collections.OrderedDict)
示例#3
0
def _get_signature_details(path):
    with zipfile.ZipFile(path, mode='r') as zobj:
        info = signing.SignatureInfo(zobj.read('META-INF/mozilla.rsa'))
        manifest = force_str(zobj.read('META-INF/manifest.mf'))
        return info, manifest