Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netsmb always include support for password encryption



details:   https://anonhg.NetBSD.org/src/rev/0af0ce46af60
branches:  trunk
changeset: 543200:0af0ce46af60
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Feb 19 08:33:08 2003 +0000

description:
always include support for password encryption
const-poison smb_crypt.c some

diffstat:

 sys/netsmb/files.netsmb |  4 ++--
 sys/netsmb/smb_crypt.c  |  9 ++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 8e1adccd9c95 -r 0af0ce46af60 sys/netsmb/files.netsmb
--- a/sys/netsmb/files.netsmb   Wed Feb 19 08:13:46 2003 +0000
+++ b/sys/netsmb/files.netsmb   Wed Feb 19 08:33:08 2003 +0000
@@ -1,6 +1,6 @@
-#      $NetBSD: files.netsmb,v 1.1 2003/02/18 12:18:29 jdolecek Exp $
+#      $NetBSD: files.netsmb,v 1.2 2003/02/19 08:33:09 jdolecek Exp $
 
-defpseudo nsmb
+defpseudo nsmb:                des
 
 file   netsmb/iconv.c                  nsmb
 file   netsmb/smb_conn.c               nsmb
diff -r 8e1adccd9c95 -r 0af0ce46af60 sys/netsmb/smb_crypt.c
--- a/sys/netsmb/smb_crypt.c    Wed Feb 19 08:13:46 2003 +0000
+++ b/sys/netsmb/smb_crypt.c    Wed Feb 19 08:33:08 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_crypt.c,v 1.4 2003/02/19 08:13:46 jdolecek Exp $   */
+/*     $NetBSD: smb_crypt.c,v 1.5 2003/02/19 08:33:08 jdolecek Exp $   */
 
 /*
  * Copyright (c) 2000-2001, Boris Popov
@@ -51,15 +51,18 @@
 #include <netsmb/smb_subr.h>
 #include <netsmb/smb_dev.h>
 
+/* always enable */
+#define NETSMBCRYPTO
+
 #ifdef NETSMBCRYPTO
 
 #include <crypto/des/des.h>
 
-static u_char N8[] = {0x4b, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25};
+static const u_char N8[] = {0x4b, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25};
 
 
 static void
-smb_E(const u_char *key, u_char *data, u_char *dest)
+smb_E(const u_char *key, const u_char *data, u_char *dest)
 {
        des_key_schedule *ksp;
        u_char kk[8];



Home | Main Index | Thread Index | Old Index