summaryrefslogtreecommitdiff
path: root/src/providers/krb5
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-28 14:14:13 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-11-04 15:04:20 -0400
commitfab9c6a75eaf09e4f5440f4bb530c26009b0ffc7 (patch)
tree0eaa0652c7544485f0088bc3de16e1caad0bf6a6 /src/providers/krb5
parent0bbe2065770968c70fd305da4f6eda1a360a3f1b (diff)
downloadsssd-fab9c6a75eaf09e4f5440f4bb530c26009b0ffc7.tar.gz
sssd-fab9c6a75eaf09e4f5440f4bb530c26009b0ffc7.tar.bz2
sssd-fab9c6a75eaf09e4f5440f4bb530c26009b0ffc7.zip
Make krb5_setup() public
Diffstat (limited to 'src/providers/krb5')
-rw-r--r--src/providers/krb5/krb5_auth.c5
-rw-r--r--src/providers/krb5/krb5_auth.h3
-rw-r--r--src/providers/krb5/krb5_child.c6
3 files changed, 8 insertions, 6 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index 08a97ef1..80d8734a 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -311,9 +311,8 @@ static int krb5_cleanup(void *ptr)
return EOK;
}
-static errno_t krb5_setup(TALLOC_CTX *mem_ctx, struct pam_data *pd,
- struct krb5_ctx *krb5_ctx,
- struct krb5child_req **krb5_req)
+errno_t krb5_setup(TALLOC_CTX *mem_ctx, struct pam_data *pd,
+ struct krb5_ctx *krb5_ctx, struct krb5child_req **krb5_req)
{
struct krb5child_req *kr = NULL;
diff --git a/src/providers/krb5/krb5_auth.h b/src/providers/krb5/krb5_auth.h
index 4178082a..a5405864 100644
--- a/src/providers/krb5/krb5_auth.h
+++ b/src/providers/krb5/krb5_auth.h
@@ -59,6 +59,9 @@ struct krb5child_req {
bool valid_tgt_present;
};
+errno_t krb5_setup(TALLOC_CTX *mem_ctx, struct pam_data *pd,
+ struct krb5_ctx *krb5_ctx, struct krb5child_req **krb5_req);
+
void krb5_pam_handler(struct be_req *be_req);
struct tevent_req *krb5_auth_send(TALLOC_CTX *mem_ctx,
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index b028962a..9ba2f827 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -930,7 +930,7 @@ static int krb5_cleanup(void *ptr)
return EOK;
}
-static int krb5_setup(struct krb5_req *kr, uint32_t offline)
+static int krb5_child_setup(struct krb5_req *kr, uint32_t offline)
{
krb5_error_code kerr = 0;
@@ -1120,9 +1120,9 @@ int main(int argc, const char *argv[])
goto fail;
}
- ret = krb5_setup(kr, offline);
+ ret = krb5_child_setup(kr, offline);
if (ret != EOK) {
- DEBUG(1, ("krb5_setup failed.\n"));
+ DEBUG(1, ("krb5_child_setup failed.\n"));
goto fail;
}