krb5 commit: Fix krb5_rd_req usage in user-to-user sample app
Greg Hudson
ghudson at MIT.EDU
Thu May 23 12:58:53 EDT 2013
https://github.com/krb5/krb5/commit/48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2
commit 48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2
Author: Greg Hudson <ghudson at mit.edu>
Date: Wed May 22 01:57:36 2013 -0400
Fix krb5_rd_req usage in user-to-user sample app
Pass the server principal to krb5_rd_req so it can do proper transited
checking.
src/appl/user_user/client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/appl/user_user/client.c b/src/appl/user_user/client.c
index ed25164..3d5fc51 100644
--- a/src/appl/user_user/client.c
+++ b/src/appl/user_user/client.c
@@ -240,8 +240,8 @@ int main (int argc, char *argv[])
#if 1
/* read the ap_req to get the session key */
- retval = krb5_rd_req(context, &auth_context, &reply,
- NULL, NULL, NULL, &ticket);
+ retval = krb5_rd_req(context, &auth_context, &reply, creds.client, NULL,
+ NULL, &ticket);
free(reply.data);
#else
retval = krb5_recvauth(context, &auth_context, (krb5_pointer)&s, "???",
More information about the cvs-krb5
mailing list