* retval: stores error codes returned from subroutines
* buf: the coding buffer
* length: length of the most-recently produced encoding
- * sum: cumulative length of the entire encoding
*/
#define krb5_setup() \
asn1_error_code retval; \
- unsigned int length, sum = 0; \
+ unsigned int length; \
asn1buf *buf=NULL; \
krb5_data *tmpcode; \
\
krb5_setup();
retval = asn1_encode_pa_pk_as_req(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_pa_pk_as_req_draft9(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_pa_pk_as_rep(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_pa_pk_as_rep_draft9(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_auth_pack(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_auth_pack_draft9(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_kdc_dh_key_info(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_reply_key_pack(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_reply_key_pack_draft9(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_td_trusted_certifiers(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
krb5_setup();
retval = asn1_encode_sequence_of_algorithm_identifier(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}
#endif /* DISABLE_PKINIT */
krb5_setup();
retval = asn1_encode_sequence_of_typed_data(buf,rep,&length);
if (retval) goto error;
- sum += length;
krb5_cleanup();
}