From: Richard Basch Date: Tue, 5 Dec 1995 03:30:58 +0000 (+0000) Subject: The wrong encryption system was being initialized. The response to the mk_req X-Git-Tag: krb5-1.0-beta6~746 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=945982c94b543b5ab468d9a89f98cdaaa5336f3c;p=krb5.git The wrong encryption system was being initialized. The response to the mk_req should be done using the session key and its encryption system, not the ticket's encryption system. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7161 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index dfd147357..451bbe680 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -185,8 +185,8 @@ krb5_mk_req_extended(context, auth_context, ap_req_options, in_data, in_creds, /* put together an eblock for this encryption */ - krb5_use_enctype(context, &eblock, request.ticket->enc_part.enctype); - request.authenticator.enctype = request.ticket->enc_part.enctype; + krb5_use_enctype(context, &eblock, in_creds->keyblock.enctype); + request.authenticator.enctype = in_creds->keyblock.enctype; request.authenticator.kvno = 0; request.authenticator.ciphertext.length = krb5_encrypt_size(scratch->length, eblock.crypto_entry);