DEVEL15-linux-warning-reduction-20090318
[openafs.git] / src / rxkad / domestic / crypt_conn.c
index f827e04..1ba1f79 100644 (file)
@@ -37,6 +37,7 @@ RCSID
 #else /* !KERNEL */
 #include <afs/stds.h>
 #include <sys/types.h>
+#include <string.h>
 #include <rx/rx.h>
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
@@ -72,7 +73,7 @@ rxkad_DecryptPacket(const struct rx_connection *conn,
        if (!data || !tlen)
            break;
        tlen = MIN(len, tlen);
-       fc_cbc_encrypt(data, data, tlen, schedule, xor, DECRYPT);
+       fc_cbc_encrypt(data, data, tlen, *schedule, xor, DECRYPT);
        len -= tlen;
     }
     /* Do this if packet checksums are ever enabled (below), but
@@ -113,7 +114,7 @@ rxkad_EncryptPacket(const struct rx_connection * conn,
        if (!data || !tlen)
            break;
        tlen = MIN(len, tlen);
-       fc_cbc_encrypt(data, data, tlen, schedule, xor, ENCRYPT);
+       fc_cbc_encrypt(data, data, tlen, *schedule, xor, ENCRYPT);
        len -= tlen;
     }
     return 0;