]> git.ipfire.org Git - thirdparty/krb5.git/commit
Be more careful asking for AS key in SPAKE client 757/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 31 Mar 2018 14:43:49 +0000 (10:43 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 3 Apr 2018 18:00:10 +0000 (14:00 -0400)
commitf240f1b0d324312be8aa59ead7cfbe0c329ed064
tree8a84302a7a902ac8f1848c37d4a1ed69b3d58279
parent80a4d553d54f09d7467f090a92964236a7a7d44b
Be more careful asking for AS key in SPAKE client

Asking for the AS key too early can result in password prompts in
situations where SPAKE won't proceed, such as when the KDC offers only
second factor types not supported by the client.

In spake_prep_questions(), decode the received message and make sure
it's a challenge with a supported group and second factor type
(SF-NONE at the moment).  Save the decoded message and use it in
spake_process().  Do not retrieve the AS key at the beginning of
spake_process(); instead do so in process_challenge() after checking
the challenge group and factor types.

Move contains_sf_none() earlier in the file so that it can be used by
spake_prep_questions() without a prototype.

ticket: 8659
src/plugins/preauth/spake/spake_client.c