sshsrv_dp.c revision a0c764a36f2f432e6063de84be6f6af7e96ec159
/*
Authors:
Jakub Hrozek <jhrozek@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 <talloc.h>
#include <tevent.h>
#include "sbus/sssd_dbus.h"
#include "sbus/sbus_client.h"
#include "providers/data_provider.h"
#include "responder/common/responder.h"
#include "responder/ssh/sshsrv_private.h"
struct sss_dp_get_ssh_host_info {
struct sss_domain_info *dom;
bool fast_reply;
const char *name;
const char *alias;
};
static DBusMessage *
sss_dp_get_ssh_host_msg(void *pvt);
struct tevent_req *
struct sss_domain_info *dom,
bool fast_reply,
const char *name,
const char *alias)
{
struct tevent_req *req;
struct sss_dp_get_ssh_host_info *info;
struct sss_dp_req_state *state;
char *key;
if (!req) {
return NULL;
}
if (!dom) {
goto error;
}
if (alias) {
} else {
}
if (!key) {
goto error;
}
"Could not issue DP request [%d]: %s\n",
goto error;
}
return req;
return req;
}
static DBusMessage *
sss_dp_get_ssh_host_msg(void *pvt)
{
struct sss_dp_get_ssh_host_info *info;
char *filter;
if (info->fast_reply) {
be_type |= BE_REQ_FAST;
}
} else {
}
if (!filter) {
return NULL;
}
return NULL;
}
/* create the message */
"Creating SSH host request for [%s][%u][%s]\n",
if (!dbret) {
return NULL;
}
return msg;
}
struct tevent_req *req,
char **err_msg)
{
}