]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/smblib/smbencrypt.c
Source Format Enforcement (#763)
[thirdparty/squid.git] / lib / smblib / smbencrypt.c
index 7efdeac8a9fe535c91b25a7dc70743c46cfe8045..8b1f643cf046034c8c030f288750a0fe384b5de1 100644 (file)
@@ -1,4 +1,10 @@
-#include "squid.h"
+/*
+ * Copyright (C) 1996-2021 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.
@@ -6,7 +12,9 @@
  * 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
@@ -22,6 +30,8 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include "squid.h"
+
 #include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -117,7 +127,7 @@ E_md4hash(uchar * passwd, uchar * p16)
         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);
 
@@ -209,3 +219,4 @@ strupper(char *s)
         }
     }
 }
+