parameters: (task_uid)
docstring: Return archaive containing dump.pcap along with extracted tls sessions
      keys in format acceptable by wireshark.
docstring_summary: Return archaive containing dump.pcap along with extracted tls sessions
      keys in format acceptable by wireshark.
docstring_tokens: Return archaive containing dump . pcap along with extracted tls sessions keys in format acceptable by wireshark .
function: def pcap_dump(task_uid):
      """
      Return archaive containing dump.pcap along with extracted tls sessions
      keys in format acceptable by wireshark.
      """
      analysis = AnalysisProxy(minio, task_uid)
      try:
          with NamedTemporaryFile() as f_pcap, NamedTemporaryFile() as f_keys, NamedTemporaryFile() as f_archive:
              with ZipFile(f_archive, "w", ZIP_DEFLATED) as archive:
                  analysis.get_pcap_dump(f_pcap)
                  archive.write(f_pcap.name, "dump.pcap")
                  try:
                      analysis.get_wireshark_key_file(f_keys)
                      archive.write(f_keys.name, "dump.keys")
                  except NoSuchKey:
                      # No dumped keys.
                      pass
              f_archive.seek(0)
              return send_file(f_archive.name, mimetype="application/zip")
      except NoSuchKey:
          abort(404, description="No network traffic avaible.")
function_tokens: def pcap_dump ( task_uid ) : analysis = AnalysisProxy ( minio , task_uid ) try : with NamedTemporaryFile ( ) as f_pcap , NamedTemporaryFile ( ) as f_keys , NamedTemporaryFile ( ) as f_archive : with ZipFile ( f_archive , "w" , ZIP_DEFLATED ) as archive : analysis . get_pcap_dump ( f_pcap ) archive . write ( f_pcap . name , "dump.pcap" ) try : analysis . get_wireshark_key_file ( f_keys ) archive . write ( f_keys . name , "dump.keys" ) except NoSuchKey : # No dumped keys. pass f_archive . seek ( 0 ) return send_file ( f_archive . name , mimetype = "application/zip" ) except NoSuchKey : abort ( 404 , description = "No network traffic avaible." )