diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-11-16 23:20:16 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-11-16 23:20:16 +0100 |
commit | ae11589205291f78c4cf5e9417f69853440d5307 (patch) | |
tree | 6c06f35afa99b2c3005b97213711a8abd7982bd1 /examples/sample.c | |
parent | 70b947544958eb982984b4d37d584037d1801c6f (diff) | |
download | libssh-ae11589205291f78c4cf5e9417f69853440d5307.tar.gz libssh-ae11589205291f78c4cf5e9417f69853440d5307.tar.xz libssh-ae11589205291f78c4cf5e9417f69853440d5307.zip |
Pcap: more cleanup and minimalist API
Diffstat (limited to 'examples/sample.c')
-rw-r--r-- | examples/sample.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/sample.c b/examples/sample.c index 639605e..27fd7c7 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); |