aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2001-06-11 12:39:29 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2001-06-11 12:39:29 +0000
commit33841545909f4a4ee94aa148b3a9cbcdc1abb02a (patch)
treea79fc7ad2b97862c4a404f352f0211ad93a7b5f1 /sys/netsmb
parent52ebde4fbaab8a8b79de6b17892943783abec7be (diff)
downloadsrc-33841545909f4a4ee94aa148b3a9cbcdc1abb02a.tar.gz
src-33841545909f4a4ee94aa148b3a9cbcdc1abb02a.zip
Sync with recent KAME.
This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=78064
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netsmb/smb_crypt.c b/sys/netsmb/smb_crypt.c
index e72a385304f9..89b6d9e6bb39 100644
--- a/sys/netsmb/smb_crypt.c
+++ b/sys/netsmb/smb_crypt.c
@@ -74,8 +74,8 @@ smb_E(const u_char *key, u_char *data, u_char *dest)
kk[6] = key[5] << 2 | (key[6] >> 6 & 0xfe);
kk[7] = key[6] << 1;
ksp = malloc(sizeof(des_key_schedule), M_SMBTEMP, M_WAITOK);
- des_set_key((C_Block*)kk, *ksp);
- des_ecb_encrypt((C_Block*)data, (C_Block*)dest, *ksp, 1);
+ des_set_key((des_cblock *)kk, *ksp);
+ des_ecb_encrypt((des_cblock *)data, (des_cblock *)dest, *ksp, 1);
free(ksp, M_SMBTEMP);
}
#endif