git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1318 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-08 11:08:58 +00:00
parent b3416f41ae
commit aa0c1fc1c0
35 changed files with 83 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
#include <krb5_locl.h>
#include <krb5_error.h>
RCSID("$Id$");
krb5_error_code
krb5_rd_rep(krb5_context context,
@@ -17,9 +18,9 @@ krb5_rd_rep(krb5_context context,
if (len < 0)
return ASN1_PARSE_ERROR;
if (ap_rep.pvno != 5)
return KRB_AP_ERR_BADVERSION;
return KRB5KRB_AP_ERR_BADVERSION;
if (ap_rep.msg_type != krb_ap_rep)
return KRB_AP_ERR_MSG_TYPE;
return KRB5KRB_AP_ERR_MSG_TYPE;
des_set_key (auth_context->key.contents.data, schedule);
len = ap_rep.enc_part.cipher.length;
@@ -44,13 +45,13 @@ krb5_rd_rep(krb5_context context,
return ASN1_PARSE_ERROR;
if ((*repl)->ctime != auth_context->authenticator->ctime ||
(*repl)->cusec != auth_context->authenticator->cusec) {
printf("KRB_AP_ERR_MUT_FAIL\n");
printf("KRB5KRB_AP_ERR_MUT_FAIL\n");
printf ("(%u, %u) != (%u, %u)\n",
(*repl)->ctime, (*repl)->cusec,
auth_context->authenticator->ctime,
auth_context->authenticator->cusec);
#if 0 /* Something wrong with the coding??? */
return KRB_AP_ERR_MUT_FAIL;
return KRB5KRB_AP_ERR_MUT_FAIL;
#endif
}