DEVEL15-death-to-longc-procs-20060804
[openafs.git] / src / rxkad / domestic / fcrypt.c
index 8d1884d..d27ea7f 100644 (file)
@@ -41,12 +41,11 @@ RCSID
 #include <asm/byteorder.h>
 #endif
 
-#include "afs/longc_procs.h"
-
 #else /* KERNEL */
 
 #include <afs/stds.h>
 #include <sys/types.h>
+#include <string.h>
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
 #else
@@ -112,7 +111,7 @@ fc_keysched(struct ktc_encryptionKey *key, fc_KeySchedule schedule)
 /* IN int encrypt; * 0 ==> decrypt, else encrypt */
 afs_int32
 fc_ecb_encrypt(void * clear, void * cipher,
-              fc_KeySchedule schedule, int encrypt)
+              const fc_KeySchedule schedule, int encrypt)
 {
     afs_uint32 L, R;
     volatile afs_uint32 S, P;
@@ -201,7 +200,7 @@ fc_ecb_encrypt(void * clear, void * cipher,
 */
 afs_int32
 fc_cbc_encrypt(void *input, void *output, afs_int32 length,
-              fc_KeySchedule key, afs_uint32 * xor, int encrypt)
+              const fc_KeySchedule key, afs_uint32 * xor, int encrypt)
 {
     afs_uint32 i, j;
     afs_uint32 t_input[2];