passdb-cache.c revision bcf5f1acb2e3891f951fd0848c23b86c35efe7e1
/* Copyright (C) 2004 Timo Sirainen */
#include "common.h"
#include "password-scheme.h"
#include "passdb.h"
#include "passdb-cache.h"
#include <stdlib.h>
{
return;
t_push();
value = "";
} else {
value++;
}
t_pop();
}
}
const char *password,
{
if (passdb_cache == NULL)
return FALSE;
/* value = password \t ... */
return FALSE;
if (*value == '\0') {
/* negative cache entry */
return TRUE;
}
if (*cached_pw == '\0') {
/* NULL password */
return TRUE;
}
if (ret < 0) {
"Unknown password scheme %s", scheme);
} else if (ret == 0) {
}
return TRUE;
}
const char **scheme_r, int use_expired)
{
int expired;
if (passdb_cache == NULL)
return FALSE;
return FALSE;
if (*value == '\0') {
/* negative cache entry */
return TRUE;
}
return TRUE;
}
void passdb_cache_init(void)
{
const char *env;
unsigned int cache_ttl;
return;
if (max_size == 0)
return;
return;
if (cache_ttl == 0)
return;
}
void passdb_cache_deinit(void)
{
if (passdb_cache != NULL)
}