<div dir="ltr">This is update of <a href="https://mailman.videolan.org/pipermail/vlc-devel/2017-January/111116.html">https://mailman.videolan.org/pipermail/vlc-devel/2017-January/111116.html</a><br>This patch allows authenticate to sftp server with ssh-agent. <br>Thanks Denis Charmet for his suggestions:<div>    libssh2_agent_free(NULL) will crash, according to <a href="https://github.com/libssh2/libssh2/blob/master/src/agent.c#L806">https://github.com/libssh2/libssh2/blob/master/src/agent.c#L806</a>. Fixed.</div><div>    Duplicated authentication choice was removed.</div></div>