changed error code for invalid encryption type
authoredg <edg@mit.edu>
Fri, 6 Apr 1990 13:50:14 +0000 (13:50 +0000)
committeredg <edg@mit.edu>
Fri, 6 Apr 1990 13:50:14 +0000 (13:50 +0000)
removed initialization of krb5_clockskew

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@466 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/rd_priv.c

index c0b50eff1ba938438069dbb23a43f13eae3d15f6..290f1af53e2df082ae4657318e7074d907d22411 100644 (file)
@@ -26,7 +26,7 @@ static char rd_priv_c[] =
 #include <krb5/libos-proto.h>
 #include <krb5/ext-proto.h>
 
-extern krb5_deltat krb5_clockskew = 100;   /* temporary assingment for debugging */
+extern krb5_deltat krb5_clockskew;   
 #define in_clock_skew(date) (abs((date)-currenttime) < krb5_clockskew)
 
 krb5_error_code
@@ -57,7 +57,7 @@ OLDDECLARG(krb5_data *, outbuf)
 #define cleanup_privmsg() {(void)xfree(privmsg->enc_part.data); (void)xfree(privmsg);}
     if (!valid_etype(privmsg->etype)) {
        cleanup_privmsg();
-       return KRB5KRB_AP_ERR_MODIFIED; /* XXX */
+       return KRB5_PROG_ETYPE_NOSUPP; /* XXX */
     }
                           
     /* put together an eblock for this decryption */