const unsigned DES_INT32 *kp;
const unsigned char *ip;
struct iov_block_state input_pos;
- unsigned char storage[MIT_DES_BLOCK_LENGTH], *block = NULL, *ptr;
+ unsigned char storage[MIT_DES_BLOCK_LENGTH], *ptr;
IOV_BLOCK_STATE_INIT(&input_pos);
input_pos.include_sign_only = 1;
if (!krb5int_c_iov_get_block_nocopy(storage, MIT_DES_BLOCK_LENGTH,
data, num_data, &input_pos, &ptr))
break;
- block = ptr;
/* Decompose this block and xor it with the previous ciphertext. */
GET_HALF_BLOCK(temp, ptr);
const krb5_data *salt, unsigned long count,
const krb5_data *output)
{
- int l, r, i;
+ int l, i;
char *utmp1, *utmp2;
char utmp3[20]; /* XXX length shouldn't be hardcoded! */
abort();
/* Step 2. */
l = (output->length + hlen - 1) / hlen;
- r = output->length - (l - 1) * hlen;
utmp1 = /*output + dklen; */ malloc(hlen);
if (utmp1 == NULL)
krb5_ticket *sec_ticket_arr[2];
krb5_timestamp time_now;
krb5_pa_data **combined_padata = NULL;
- krb5_pa_data ap_req_padata;
krb5_keyblock *local_subkey = NULL;
assert (subkey != NULL);
} else
tgsreq.second_ticket = 0;
- ap_req_padata.contents = NULL;
-
/* encode the body; then checksum it */
if ((retval = encode_krb5_kdc_req_body(&tgsreq, &scratch)))
goto cleanup;
k5_unparse_name(krb5_context context, krb5_const_principal principal,
int flags, char **name, unsigned int *size)
{
- char *cp, *q;
+ char *q;
int i;
- int length;
krb5_int32 nelem;
unsigned int totalsize = 0;
char *default_realm = NULL;
nelem = krb5_princ_size(context, principal);
for (i = 0; i < (int) nelem; i++) {
- cp = krb5_princ_component(context, principal, i)->data;
totalsize += component_length_quoted(krb5_princ_component(context, principal, i), flags);
totalsize++; /* This is for the separator */
}
q = *name;
for (i = 0; i < (int) nelem; i++) {
- cp = krb5_princ_component(context, principal, i)->data;
- length = krb5_princ_component(context, principal, i)->length;
q += copy_component_quoting(q,
krb5_princ_component(context,
principal,
krb5_data ** newdataptr,
unsigned flags)
{
- int i, j, len, clen, outpos, ucsoutlen, outsize, last;
+ int i, j, len, clen, outpos, ucsoutlen, outsize;
char *out = NULL, *outtmp, *s;
krb5_ucs4 *ucs = NULL, *p, *ucsout = NULL;
krb5_data *newdata;
if (i == len) {
break;
}
- last = i;
/* Allocate more space in out if necessary */
if (len - i >= outsize - outpos) {