return retval;
}
-/* XXX This is to move to krb5_send_tgs, RSN -- CAP 950411 */
-extern krb5_cksumtype krb5_kdc_req_sumtype;
-
krb5_error_code INTERFACE
krb5_get_cred_via_tkt (context, tkt, kdcoptions, address, in_cred, out_cred)
krb5_context context;
*/
if (retval = krb5_send_tgs(context, kdcoptions, &in_cred->times, NULL,
- krb5_kdc_req_sumtype, /* To be removed */
in_cred->server, address, in_cred->authdata,
0, /* no padata */
(kdcoptions & KDC_OPT_ENC_TKT_IN_SKEY) ?
Sends a request to the TGS and waits for a response.
options is used for the options in the KRB_TGS_REQ.
timestruct values are used for from, till, rtime " " "
- etype is used for etype " " ", and to encrypt the authorization data, if present
- sumtype is used for the checksum in the AP_REQ in the KRB_TGS_REQ
+ etype is used for etype " " ", and to encrypt the authorization data,
sname is used for sname " " "
addrs, if non-NULL, is used for addresses " " "
authorization_dat, if non-NULL, is used for authorization_dat " " "
returns system errors
*/
+extern krb5_cksumtype krb5_kdc_req_sumtype;
static krb5_error_code
-krb5_send_tgs_basic(context, in_data, sumtype, in_cred, outbuf)
+krb5_send_tgs_basic(context, in_data, in_cred, outbuf)
krb5_context context;
krb5_data * in_data;
- const krb5_cksumtype sumtype;
krb5_creds * in_cred;
krb5_data * outbuf;
{
krb5_data * toutbuf;
/* Generate checksum */
- if ((checksum.contents =
- (krb5_octet *)malloc(krb5_checksum_size(context, sumtype))) == NULL)
+ if ((checksum.contents = (krb5_octet *)
+ malloc(krb5_checksum_size(context, krb5_kdc_req_sumtype))) == NULL)
return(ENOMEM);
- if (retval = krb5_calculate_checksum(context, sumtype,
+ if (retval = krb5_calculate_checksum(context, krb5_kdc_req_sumtype,
in_data->data, in_data->length,
(krb5_pointer) in_cred->keyblock.contents,
in_cred->keyblock.length, &checksum)) {
}
krb5_error_code
-krb5_send_tgs(context, kdcoptions, timestruct, etypes, sumtype, sname, addrs,
+krb5_send_tgs(context, kdcoptions, timestruct, etypes, sname, addrs,
authorization_data, padata, second_ticket, in_cred, rep)
krb5_context context;
const krb5_flags kdcoptions;
const krb5_ticket_times * timestruct;
const krb5_enctype * etypes;
- const krb5_cksumtype sumtype;
krb5_const_principal sname;
krb5_address * const * addrs;
krb5_authdata * const * authorization_data;
/*
* Get an ap_req.
*/
- if (retval = krb5_send_tgs_basic(context, scratch, sumtype,
- in_cred, &scratch2)) {
+ if (retval = krb5_send_tgs_basic(context, scratch, in_cred, &scratch2)) {
krb5_free_data(context, scratch);
goto send_tgs_error_2;
}