always include support for password encryption

const-poison smb_crypt.c some
This commit is contained in:
jdolecek 2003-02-19 08:33:08 +00:00
parent 09caa6e970
commit 1cacc8d1a4
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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];