include/ssh: Make sure handles don't contain line breaks
Handles returned by ssh_tunnel_open() and ssh_proxy_open() are base64
encoded using the base64 commandline tool. However, base64 inserts line
breaks into long outputs, causing line breaks to be inserted into long
handles, and the returned handles to become unusable.
This commit changes the parameters passed tp base64 so that no line
breaks are inserted into the handles.
include/ssh: Add functions to list running tunnels and proxies
The ssh module does not provide any means to figure out what tunnels
and proxies have been established, making it hard to automate ssh
connections.
This commit adds the ssh_tunnel_list() and ssh_proxy_list() functions
which may be used to list the established tunnels and proxies,
respectively.
The ssh module makes a call to error() in order to log an error message,
however that function does not exist (anymore).
This commit changes the call to reference log_error() instead.