From ae11589205291f78c4cf5e9417f69853440d5307 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 16 Nov 2009 23:20:16 +0100 Subject: Pcap: more cleanup and minimalist API --- examples/sample.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/sample.c b/examples/sample.c index 639605e1..27fd7c7c 100644 --- a/examples/sample.c +++ b/examples/sample.c @@ -464,7 +464,6 @@ static int client(ssh_session session){ ssh_pcap_file pcap; void set_pcap(ssh_session session); void set_pcap(ssh_session session){ - ssh_pcap_context ctx; if(!pcap_file) return; pcap=ssh_pcap_file_new(); @@ -474,10 +473,9 @@ void set_pcap(ssh_session session){ pcap=NULL; return; } - ctx=ssh_pcap_context_new(session); - ssh_pcap_context_set_file(ctx,pcap); - ssh_set_pcap_context(session,ctx); + ssh_set_pcap_file(session,pcap); } + void cleanup_pcap(void); void cleanup_pcap(){ ssh_pcap_file_free(pcap); -- cgit v1.2.3