static krb5_error_code krb5_kt_ret_keyblock(krb5_context context, krb5_storage *sp, krb5_keyblock *p) { int ret; int16_t tmp; ret = krb5_ret_int16(sp, &tmp); /* keytype + etype */ if(ret) return ret; p->keytype = tmp; ret = krb5_kt_ret_data(context, sp, &p->keyvalue); return ret; }
static krb5_error_code krb5_kt_ret_keyblock(krb5_context context, struct fkt_data *fkt, krb5_storage *sp, krb5_keyblock *p) { int ret; int16_t tmp; ret = krb5_ret_int16(sp, &tmp); /* keytype + etype */ if(ret) { krb5_set_error_message(context, ret, N_("Cant read keyblock from file %s", ""), fkt->filename); return ret; } p->keytype = tmp; ret = krb5_kt_ret_data(context, sp, &p->keyvalue); if (ret) krb5_set_error_message(context, ret, N_("Cant read keyblock from file %s", ""), fkt->filename); return ret; }