]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - helpers/ntlm_auth/smb_lm/ntlm_smb_lm_auth.cc
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / ntlm_auth / smb_lm / ntlm_smb_lm_auth.cc
index e0caf0f9e2bc90efbc4863e734492eb1b305232c..f553016171dceb9bc13153f69cc53bf6eff09491 100644 (file)
@@ -56,7 +56,6 @@
 #include <time.h>
 #endif
 
-
 /************* CONFIGURATION ***************/
 
 #define DEAD_DC_RETRY_INTERVAL 30
@@ -94,7 +93,6 @@ void process_options(int argc, char *argv[]);
 const char * obtain_challenge(void);
 void manage_request(void);
 
-
 #define ENCODED_PASS_LEN 24
 #define MAX_USERNAME_LEN 255
 #define MAX_DOMAIN_LEN 255
@@ -117,7 +115,6 @@ int numcontrollers = 0;
 dc *current_dc;
 char smb_error_buffer[1000];
 
-
 /* Disconnects from the DC. A reconnection will be done upon the next request
  */
 void
@@ -159,7 +156,6 @@ init_challenge(char *domain, char *domain_controller)
     smberr = SMB_Get_Last_Error();
     SMB_Get_Error_Msg(smberr, errstr, 1000);
 
-
     if (handle == NULL) {      /* couldn't connect */
         debug("Couldn't connect to SMB Server. Error:%s\n", errstr);
         return 1;
@@ -257,7 +253,6 @@ ntlm_check_auth(ntlm_authenticate * auth, int auth_length)
     memcpy(user, tmp.str, tmp.l);
     *(user + tmp.l) = '\0';
 
-
     /* Authenticating against the NT response doesn't seem to work... */
     tmp = ntlm_fetch_string(&(auth->hdr), auth_length, &auth->lmresponse, auth->flags);
     if (tmp.str == NULL || tmp.l == 0) {
@@ -298,7 +293,6 @@ ntlm_check_auth(ntlm_authenticate * auth, int auth_length)
 
     /* TODO: check against empty password!!!!! */
 
-
     debug("checking domain: '%s', user: '%s', pass='%s'\n", domain, user, pass);
 
     rv = SMB_Logon_Server(handle, user, pass, domain, 1);
@@ -468,7 +462,6 @@ obtain_challenge()
     return NULL;
 }
 
-
 void
 manage_request()
 {
@@ -631,7 +624,6 @@ manage_request()
     return;
     /********* END ********/
 
-
 }
 
 int