ssh_get_authentication_socket
int ssh_get_authentication_socket(int *fdp);
r = ssh_get_authentication_socket(&sock);
switch (r = ssh_get_authentication_socket(&agent_fd)) {
if ((r = ssh_get_authentication_socket(&agent_fd)) != 0)
if ((r = ssh_get_authentication_socket(&agent_fd)) != 0) {
if ((r = ssh_get_authentication_socket(NULL)) != 0) {
if ((r = ssh_get_authentication_socket(&auth_sock)) != 0) {
if ((r = ssh_get_authentication_socket(&agent_fd)) != 0) {
if ((r = ssh_get_authentication_socket(NULL)) == 0)
r = ssh_get_authentication_socket(&auth_sock);
if ((r = ssh_get_authentication_socket(NULL)) == 0)
if ((r = ssh_get_authentication_socket(NULL)) == 0)