--------------------- PatchSet 518 Date: 2000/08/10 11:51:38 Author: kinkie Branch: ntlm Tag: (none) Log: Macro-ized a few ops. Members: ntlm_auth_modules/NTLMSSP/ntlm.h:1.1.2.4->1.1.2.5 Index: squid/ntlm_auth_modules/NTLMSSP/ntlm.h =================================================================== RCS file: /cvsroot/squid-sf//squid/ntlm_auth_modules/NTLMSSP/Attic/ntlm.h,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- squid/ntlm_auth_modules/NTLMSSP/ntlm.h 8 Aug 2000 15:30:15 -0000 1.1.2.4 +++ squid/ntlm_auth_modules/NTLMSSP/ntlm.h 10 Aug 2000 11:51:38 -0000 1.1.2.5 @@ -47,6 +47,9 @@ #define debug(char *format, ...) {} /* Too lazy to write va_args stuff */ #endif +#define OK(X) debug("sending OK for user %s\n",X);printf("OK %s\n",X) +#define ERR(X) fprintf(stderr,"ntlm-auth: ERR %s\n",X); printf("ERR %s\n",X) + #define MAX_FIELD_LENGTH 300 /* max length of an NTLMSSP field */ /* NTLM request types that we know about */ @@ -171,8 +174,7 @@ void drop_ntlmssp(ntlmssp *nt); ntlmssp *decode_ntlmssp_auth (char *encoded); char* make_challenge(); -int ntlm_check_auth(ntlmssp *got); - +char* ntlm_check_auth(struct ntlm_authenticate * auth, int auth_length); extern char *domain; extern char *domain_controller;