]> git.ipfire.org Git - thirdparty/krb5.git/commit
Refactor AS-REQ nonce and timestamp handling
authorGreg Hudson <ghudson@mit.edu>
Sun, 2 Jun 2013 04:31:04 +0000 (00:31 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 5 Jun 2013 20:26:04 +0000 (16:26 -0400)
commitf2600131fb358339ceccecb1c80af7d471c0501b
treeafb2fb452bb473212d1b8d2ddddbbb493920d529
parent1c344d6b8eece18fa4d96a81707e1d406d776270
Refactor AS-REQ nonce and timestamp handling

Create helper functions to set the request nonce and to set the
request timestamp.  Don't bother picking a nonce in
restart_init_creds_loop since we will just pick a new one in
init_creds_step_request.  Create a library-internal function to get
the current time with possible adjustment from a preauth-required
error.  Only set ctx->request_time in one place (just before encoding
each request).  Remove unused parameters from stash_as_reply.

Partially based on a patch from Stef Walter.
src/lib/krb5/krb/get_in_tkt.c
src/lib/krb5/krb/int-proto.h
src/lib/krb5/krb/preauth2.c