ssh_get_authentication_socket_path
return ssh_get_authentication_socket_path(authsocket, fdp);
int ssh_get_authentication_socket_path(const char *authsocket, int *fdp);
r = ssh_get_authentication_socket_path(forward_agent_sock_path, &sock);