krb5_wait_queue.c revision 03abdaa21ecf562b714f204ca42379ff08626f75
/*
SSSD
Kerberos 5 Backend Module - Serialize the request of a user
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2010 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 <tevent.h>
#include <dhash.h>
#include "src/providers/krb5/krb5_auth.h"
#define INIT_HASH_SIZE 5
struct queue_entry {
struct queue_entry *prev;
struct queue_entry *next;
};
{
struct tevent_req *req;
} else {
}
}
void *pvt)
{
struct queue_entry *head;
return;
}
}
{
int ret;
struct queue_entry *head;
struct queue_entry *queue_entry;
&krb5_ctx->wait_queue_hash, 0, 0, 0, 0,
return ret;
}
}
switch (ret) {
case HASH_SUCCESS:
return EINVAL;
}
if (queue_entry == NULL) {
return ENOMEM;
}
break;
case HASH_ERROR_KEY_NOT_FOUND:
return ENOMEM;
}
if (ret != HASH_SUCCESS) {
return EIO;
}
break;
default:
return EIO;
}
return ENOENT;
} else {
return EOK;
}
}
{
int ret;
struct queue_entry *head;
struct queue_entry *queue_entry;
struct tevent_timer *te;
return;
}
switch (ret) {
case HASH_SUCCESS:
return;
}
} else {
} else {
return;
}
}
if (ret != HASH_SUCCESS) {
username));
}
break;
case HASH_ERROR_KEY_NOT_FOUND:
break;
default:
}
return;
}