#include <krb5/krb5.h>
#include <krb5/krb5_err.h>
#include <krb5/asn1.h>
+#include <stdio.h>
+#include <krb5/libos-proto.h>
#include <errno.h>
#include <krb5/ext-proto.h>
/* now decode the reply...could be error or as_rep */
- if (retval = decode_krb5_kdc_rep(packet, &as_reply)) {
+ if (retval = decode_krb5_as_rep(packet, &as_reply)) {
if (retval = decode_krb5_error(packet, &err_reply))
return retval; /* some other packet--??? */
/* it was an error */