/*
SSSD
NSS Responder - Data Provider Interfaces
Copyright (C) Simo Sorce <ssorce@redhat.com> 2008
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 <time.h>
#include <talloc.h>
#include <security/pam_modules.h>
#include "responder/common/responder_packet.h"
#include "providers/data_provider.h"
#include "sbus/sbus_client.h"
{
int ret;
int type;
/* Check if the client still exists. If not, simply free all the resources
* and quit */
return;
}
/* Sanity-check of message validity */
"Severe error. A reply callback was called but no reply was"
"received and no timeout occurred\n");
goto done;
}
switch (type) {
if (!ret) {
goto done;
}
break;
case DBUS_MESSAGE_TYPE_ERROR:
break;
default:
}
done:
}
{
/* If there is still a client waiting, reset the
* spy */
}
return 0;
}
{
int res;
/* double check dp_ctx has actually been initialized.
* in some pathological cases it may happen that nss starts up before
* dp connection code is actually able to establish a connection.
*/
"The Data Provider connection for %s is not available!"
" This maybe a bug, it shouldn't happen!\n",
return EIO;
}
return ENOMEM;
}
if (!ret) {
return EIO;
}
return ENOMEM;
}
return res;
}