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_safe(krb5_context context,
@@ -16,11 +17,11 @@ krb5_rd_safe(krb5_context context,
if (len < 0)
return ASN1_PARSE_ERROR;
if (safe.pvno != 5)
return KRB_AP_ERR_BADVERSION;
return KRB5KRB_AP_ERR_BADVERSION;
if (safe.msg_type != krb_safe)
return KRB_AP_ERR_MSG_TYPE;
return KRB5KRB_AP_ERR_MSG_TYPE;
if (safe.cksum.cksumtype != CKSUMTYPE_RSA_MD4)
return KRB_AP_ERR_INAPP_CKSUM;
return KRB5KRB_AP_ERR_INAPP_CKSUM;
/* XXX */
r = krb5_verify_checksum (context,
safe.safe_body.user_data.data,