summaryrefslogtreecommitdiff
path: root/src/responder/pam
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-05-19 15:09:05 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-06 13:38:19 -0400
commita572e241c20a4c5df4f282a2e54b89bf071369da (patch)
tree3bac9bb5368e7dfd22c1eec8c892758fbc556512 /src/responder/pam
parenta904f31f3560d80513809cb1f7c9affdd9cf5412 (diff)
downloadsssd-a572e241c20a4c5df4f282a2e54b89bf071369da.tar.gz
sssd-a572e241c20a4c5df4f282a2e54b89bf071369da.tar.bz2
sssd-a572e241c20a4c5df4f282a2e54b89bf071369da.zip
Remove dead code from the PAM responder
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv.c12
-rw-r--r--src/responder/pam/pamsrv.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/responder/pam/pamsrv.c b/src/responder/pam/pamsrv.c
index 7903e34c..c82f0fab 100644
--- a/src/responder/pam/pamsrv.c
+++ b/src/responder/pam/pamsrv.c
@@ -99,17 +99,6 @@ static void pam_dp_reconnect_init(struct sbus_connection *conn, int status, void
/* pam_shutdown(rctx); */
}
-static errno_t pam_get_config(struct pam_ctx *pctx,
- struct resp_ctx *rctx,
- struct confdb_ctx *cdb)
-{
- int ret = EOK;
- ret = confdb_get_int(cdb, pctx, CONFDB_PAM_CONF_ENTRY,
- CONFDB_PAM_CRED_TIMEOUT, 0,
- &pctx->cred_expiration);
- return ret;
-}
-
static int pam_process_init(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct confdb_ctx *cdb)
@@ -140,7 +129,6 @@ static int pam_process_init(TALLOC_CTX *mem_ctx,
}
pctx->rctx->pvt_ctx = pctx;
- ret = pam_get_config(pctx, pctx->rctx, pctx->rctx->cdb);
/* Enable automatic reconnection to the Data Provider */
diff --git a/src/responder/pam/pamsrv.h b/src/responder/pam/pamsrv.h
index 1a81fb70..689d7847 100644
--- a/src/responder/pam/pamsrv.h
+++ b/src/responder/pam/pamsrv.h
@@ -32,7 +32,6 @@ struct pam_auth_req;
typedef void (pam_dp_callback_t)(struct pam_auth_req *preq);
struct pam_ctx {
- int cred_expiration;
struct resp_ctx *rctx;
};