]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - helpers/digest_auth/LDAP/digest_pw_auth.cc
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / digest_auth / LDAP / digest_pw_auth.cc
index 170c1bad3d76da9fce780fbd94bd6253c513ade0..18dc93d39c68e469a2845039878e6dcc7f7cd359 100644 (file)
@@ -1,8 +1,14 @@
 /*
- * digest_pw_auth.c
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
  *
- * AUTHOR: Robert Collins. Based on ncsa_auth.c by Arjan de Vet
- * <Arjan.deVet@adv.iae.nl>
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
+/*
+ * AUTHOR: Robert Collins.
+ * Based on ncsa_auth.c by Arjan de Vet <Arjan.deVet@adv.iae.nl>
  * LDAP backend extension by Flavio Pescuma, MARA Systems AB <flavio@marasystems.com>
  *
  * Example digest authentication program for Squid, based on the original
@@ -29,6 +35,7 @@
  *
  * Copyright (c) 2003  Robert Collins  <robertc@squid-cache.org>
  */
+
 #include "squid.h"
 #include "digest_common.h"
 #include "helpers/defines.h"
@@ -48,7 +55,7 @@ ParseBuffer(char *buf, RequestData * requestData)
     char *p;
     requestData->parsed = 0;
     if ((p = strchr(buf, '\n')) != NULL)
-        *p = '\0';             /* strip \n */
+        *p = '\0';      /* strip \n */
 
     p = NULL;
     requestData->channelId = strtoll(buf, &p, 10);
@@ -113,3 +120,4 @@ main(int argc, char **argv)
         DoOneRequest(buf);
     exit(0);
 }
+