25 #include "libssh/libssh.h"
28 typedef struct ssh_pcap_context_struct* ssh_pcap_context;
34 int ssh_pcap_file_write_packet(ssh_pcap_file pcap,
ssh_buffer packet, uint32_t original_len);
36 ssh_pcap_context ssh_pcap_context_new(
ssh_session session);
37 void ssh_pcap_context_free(ssh_pcap_context ctx);
39 enum ssh_pcap_direction{
43 void ssh_pcap_context_set_file(ssh_pcap_context, ssh_pcap_file);
44 int ssh_pcap_context_write(ssh_pcap_context,
enum ssh_pcap_direction direction,
void *data,
45 uint32_t len, uint32_t origlen);