register int *error;
{
register krb5_ap_req *retval;
- krb5_data *temp;
+ krb5_enc_data *temp;
retval = (krb5_ap_req *)xmalloc(sizeof(*retval));
if (!retval) {
krb5_free_ap_req(retval);
return(0);
}
- temp = qbuf2krb5_data(val->authenticator, error);
+ temp = KRB5_EncryptedData2krb5_enc_data(val->authenticator, error);
if (temp) {
retval->authenticator = *temp;
xfree(temp);
free_KRB5_AP__REQ(retval);
return(0);
}
- retval->authenticator = krb5_data2qbuf(&(val->authenticator));
+ retval->authenticator =
+ krb5_enc_data2KRB5_EncryptedData(&(val->authenticator),
+ error);
if (!retval->authenticator) {
free_KRB5_AP__REQ(retval);
- *error = ENOMEM;
return(0);
}
return(retval);