/*
Authors:
Jan Cholasta <jcholast@redhat.com>
Copyright (C) 2012 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <talloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <netdb.h>
#include <popt.h>
#include "util/crypto/sss_crypto.h"
#include "sss_client/sss_cli.h"
#include "sss_client/ssh/sss_ssh_client.h"
/* connect to server using socket */
static int
{
int flags;
int ret;
/* set O_NONBLOCK on standard input */
if (flags == -1) {
goto done;
}
if (ret == -1) {
goto done;
}
/* create socket */
if (sock == -1) {
goto done;
}
/* connect to the server */
if (ret == -1) {
goto done;
}
done:
return ret;
}
{
int flags;
int i;
int ret;
/* set O_NONBLOCK on the socket */
if (flags == -1) {
goto done;
}
if (ret == -1) {
goto done;
}
while (1) {
if (ret == -1) {
continue;
}
goto done;
}
/* read from standard input & write to socket */
/* read from socket & write to standard output */
for (i = 0; i < 2; i++) {
if (res == -1) {
continue;
}
goto done;
} else if (res == 0) {
goto done;
}
errno = 0;
if (res == -1) {
"sss_atomic_write_s() failed (%d): %s\n",
goto done;
goto done;
}
}
goto done;
}
}
}
done:
return ret;
}
/* connect to server using proxy command */
static int
{
int ret;
return ret;
}
{
_("The debug level to run with"), NULL },
_("The port to use to connect to the host"), NULL },
_("The SSSD domain to use"), NULL },
};
int ret;
debug_prg_name = argv[0];
ret = set_locale();
ret = EXIT_FAILURE;
goto fini;
}
if (!mem_ctx) {
ret = EXIT_FAILURE;
goto fini;
}
/* parse parameters */
;
if (ret != -1) {
}
}
}
_("The path to the proxy command must be absolute\n"),
}
/* canonicalize hostname */
if (ret) {
if (ret) {
} else {
}
} else {
if (ret) {
} else {
}
}
if (host) {
/* look up public keys */
}
}
/* connect to server */
if (pc_args) {
} else if (ai) {
/* Try all IP addresses before giving up */
if (ret == 0) {
break;
}
}
} else {
}
fini:
return ret;
}