Class PcapngUtils
public static class PcapngUtils
- Inheritance
-
PcapngUtils
- Inherited Members
Methods
CreateHttpHandler(string, SslProvider)
Create a HttpMessageHandler that will write the pcapng file to the specified location
public static Task<HttpMessageHandler> CreateHttpHandler(string outPcapFileName, SslProvider sslProvider = SslProvider.BouncyCastle)
Parameters
outPcapFileNamestringsslProviderSslProvider
Returns
CreatePcapngFileWithKeysAsync(string, Stream, Stream)
Create a PCAPNG file from an existing file with included NSS key
public static Task CreatePcapngFileWithKeysAsync(string nssKey, Stream inRawCaptureStream, Stream outFileStream)
Parameters
Returns
GetPcapngFileWithKeyStream(Stream, string)
Get the pcapng stream if the nsskey included. Stream must be seekable
public static Stream GetPcapngFileWithKeyStream(Stream originalStream, string nssKey)
Parameters
Returns
ReadWithKeysAsync(string)
Read the pcapng file with the included keys if available. SslKeyLogFile must be in the same directory as the pcapng file, with the same name but with the extension .nsskeylog
public static Stream ReadWithKeysAsync(string pcapngFile)
Parameters
pcapngFilestring