clean::
$(RM) fp.c ip.c key_perm.h odd.h p.c p_table.h s_table.h
-EXT_LIB = $(TOP)/error_tables/krb5_err.o $(TOP)/error_tables/isode_err.o \
-libdes.a -lcom_err
+EXT_LIB = $(TOP)/error_tables/krb5_err.o \
+ $(TOP)/error_tables/isode_err.o \
+ $(TOP)/lib/cryptoconf.o \
+ $(TOP)/lib/crc-32/libcrc32.a \
+ libdes.a -lcom_err
-NormalProgramTarget(verify, $(VERIFYOBJ), EXT_LIB, EXT_LIB, -lcom_err)
+NormalProgramTarget(verify, $(VERIFYOBJ), ,$(EXT_LIB),)
NormalProgramTarget(make_e, make_e.o, misc.o, misc.o, )
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
+#include <krb5/crc-32.h>
#include "des_int.h"
OLDDECLARG(krb5_pointer, ivec)
{
krb5_checksum cksum;
- krb5_octet contents[4];
+ krb5_octet contents[CRC32_CKSUM_LENGTH];
char *p;
krb5_error_code retval, mit_des_encrypt_f();
if ( size < sizeof(mit_des_cblock) )
return KRB5_BAD_MSIZE;
- p = (char *)in + size - 4;
- bzero(p, 4);
+ p = (char *)in + size - CRC32_CKSUM_LENGTH;
+ bzero(p, CRC32_CKSUM_LENGTH);
cksum.contents = contents;
if (retval = (*krb5_cksumarray[CKSUMTYPE_CRC32]->
&cksum))
return retval;
- bcopy((char *)contents, p, 4);
+ bcopy((char *)contents, p, CRC32_CKSUM_LENGTH);
return (mit_des_encrypt_f(in, out, size, key, ivec));
}
OLDDECLARG(krb5_pointer, ivec)
{
krb5_checksum cksum;
- krb5_octet contents_prd[4];
- krb5_octet contents_get[4];
+ krb5_octet contents_prd[CRC32_CKSUM_LENGTH];
+ krb5_octet contents_get[CRC32_CKSUM_LENGTH];
char *p;
krb5_error_code retval, mit_des_decrypt_f();
return retval;
cksum.contents = contents_prd;
- p = (char *)out + size - 4;
- bcopy(p, (char *)contents_get, 4);
- bzero(p, 4);
+ p = (char *)out + size - CRC32_CKSUM_LENGTH;
+ bcopy(p, (char *)contents_get, CRC32_CKSUM_LENGTH);
+ bzero(p, CRC32_CKSUM_LENGTH);
if (retval = (*krb5_cksumarray[CKSUMTYPE_CRC32]->
sum_func)(out,
&cksum))
return retval;
- if ( bcmp((char *)contents_get, (char *)contents_prd, 4) )
+ if ( bcmp((char *)contents_get, (char *)contents_prd, CRC32_CKSUM_LENGTH) )
return KRB5KRB_AP_ERR_BAD_INTEGRITY;
return 0;