From 57e671a74096fa719061c4a8d77d7b98af390b90 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 12 Nov 1999 16:12:04 +0000 Subject: [PATCH] (krb5_get_init_creds_password): remove preauthentication generation code. it's now in krb5_get_in_cred git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7357 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 46 ---------------------------------------- 1 file changed, 46 deletions(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index 36da343bf..1581a7539 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -456,52 +456,6 @@ krb5_get_init_creds_password(krb5_context context, goto out; password = buf; break; - case KRB5KDC_ERR_PREAUTH_REQUIRED : { - if(kdc_reply.error.e_data) { - METHOD_DATA md; - int i; - decode_METHOD_DATA(kdc_reply.error.e_data->data, - kdc_reply.error.e_data->length, - &md, - NULL); - for(i = 0; i < md.len; i++){ - switch(md.val[i].padata_type){ - case pa_enc_timestamp: - if (pre_auth_types) - free (pre_auth_types); - ALLOC(pre_auth_types, 2); - if (pre_auth_types == NULL) { - free_METHOD_DATA(&md); - goto out; - } - pre_auth_types[0] = KRB5_PADATA_ENC_TIMESTAMP; - pre_auth_types[1] = KRB5_PADATA_NONE; - break; - case pa_etype_info: - preauth = &preauth2; - ALLOC_SEQ(preauth, 1); - preauth->val[0].type = KRB5_PADATA_ENC_TIMESTAMP; - krb5_decode_ETYPE_INFO(context, - md.val[i].padata_value.data, - md.val[i].padata_value.length, - &preauth->val[0].info, - NULL); - break; - } - } - free_METHOD_DATA(&md); - } else { - if (pre_auth_types) - free (pre_auth_types); - pre_auth_types = malloc(2 * sizeof(*pre_auth_types)); - if (pre_auth_types == NULL) - goto out; - pre_auth_types[0] = KRB5_PADATA_ENC_TIMESTAMP; - pre_auth_types[1] = KRB5_PADATA_NONE; - } - krb5_free_kdc_rep (context, &kdc_reply); - break; - } default: goto out; }