+Thu Sep 15 11:08:39 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * rd_req_sim.c (krb5_rd_req_simple): Use krb5_rd_req instead of
+ krb5_rd_req_decoded, to eliminate some code duplication.
+
Sat Aug 20 01:43:43 1994 Theodore Y. Ts'o (tytso at tsx-11)
* mk_req_ext.c (krb5_generate_authenticator): Fix pointer aliasing
krb5_tkt_authent **authdat;
{
krb5_error_code retval;
- krb5_ap_req *request;
krb5_rcache rcache = 0;
- if (!krb5_is_ap_req(inbuf))
- return KRB5KRB_AP_ERR_MSG_TYPE;
- if (retval = decode_krb5_ap_req(inbuf, &request)) {
- switch (retval) {
-#ifdef KRB5_USE_ISDOE
- case ISODE_50_LOCAL_ERR_BADMSGTYPE:
-#else
- case KRB5_BADMSGTYPE:
-#endif
- return KRB5KRB_AP_ERR_BADVERSION;
- default:
- return(retval);
- }
- }
-
if (server) {
retval = krb5_get_server_rcache(krb5_princ_component(server, 0),
&rcache);
goto cleanup;
}
- retval = krb5_rd_req_decoded(request, server, sender_addr, 0, 0, 0,
- rcache, authdat);
+ retval = krb5_rd_req(inbuf, server, sender_addr, 0, 0, 0,
+ rcache, authdat);
cleanup:
if (rcache)
krb5_rc_close(rcache);
- krb5_free_ap_req(request);
return retval;
}