www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: can the agent be freed just after userauth succeeded?

Re: can the agent be freed just after userauth succeeded?

From: Peter Stuge <peter_at_stuge.se>
Date: Fri, 9 Mar 2012 18:16:05 +0100

Ellié Computing Open Source Program wrote:
> I am about to add support in libcurl for agent based authentication,
> I am missing some information. Is there a list of libssh2_agent_ API
> which might return EAGAIN, or might they all return EAGAIN?

The man pages do not say?

> Once libssh2_agent_userauth succeeded or failed on the last
> identity, can I immediately get rid of it with
> libssh2_agent_disconnect/free sequence? or do I need to wait for
> the end of the channel as in the sample.

If you do not want to forward the agent connection then you should be
able to close it.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-03-09

the libssh2 team