-#include "config.h"
+/*
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
/*
* Unix SMB/Netbios implementation.
* SMB parameters and setup
* Copyright (C) Andrew Tridgell 1992-1997
* Modified by Jeremy Allison 1995.
- *
+ */
+
+/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "squid.h"
+
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
len = 128;
/* Password must be converted to NT unicode */
_my_mbstowcs(wpwd, passwd, len);
- wpwd[len] = 0; /* Ensure string is null terminated */
+ wpwd[len] = 0; /* Ensure string is null terminated */
/* Calculate length in bytes */
len = _my_wcslen(wpwd) * sizeof(int16_t);
}
}
}
+