summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5/krb5_auth.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-23 17:51:24 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-14 15:52:29 -0400
commit7b14a9e64fd248103149eb1cb422ee752d91ba58 (patch)
tree0ed1a33466652b4dd1f18c0ea5f012b2a511f8f3 /src/providers/krb5/krb5_auth.h
parent248a24eda712d738127897264290ad1b751faf12 (diff)
downloadsssd-7b14a9e64fd248103149eb1cb422ee752d91ba58.tar.gz
sssd-7b14a9e64fd248103149eb1cb422ee752d91ba58.tar.xz
sssd-7b14a9e64fd248103149eb1cb422ee752d91ba58.zip
Split parse_krb5_child_response so it can be reused
krb5-child-test will be another consumer. It also makes the code more readable by splitting a huge function.
Diffstat (limited to 'src/providers/krb5/krb5_auth.h')
-rw-r--r--src/providers/krb5/krb5_auth.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_auth.h b/src/providers/krb5/krb5_auth.h
index 89b77d366..5cc22dfe8 100644
--- a/src/providers/krb5/krb5_auth.h
+++ b/src/providers/krb5/krb5_auth.h
@@ -74,6 +74,17 @@ struct tevent_req *handle_child_send(TALLOC_CTX *mem_ctx,
int handle_child_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
uint8_t **buf, ssize_t *len);
+struct krb5_child_response {
+ int32_t msg_status;
+ struct tgt_times tgtt;
+ char *ccname;
+};
+
+errno_t
+parse_krb5_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t len,
+ struct pam_data *pd, int pwd_exp_warning,
+ struct krb5_child_response **_res);
+
errno_t add_user_to_delayed_online_authentication(struct krb5_ctx *krb5_ctx,
struct pam_data *pd,
uid_t uid);