#include "ntlm_smb_lm_auth.h"
#include "util.h" /* from Squid */
+#include "compat/stdvarargs.h"
#include "valid.h"
#include "smbencrypt.h"
#define debug_dump_ntlmssp_flags(X) /* empty */
#endif /* DEBUG */
+void
+debug (char *format,...)
+{
+#ifdef DEBUG
+ va_list args;
+ va_start(args,format);
+ vfprintf(stderr, format, args);
+ va_end(args);
+#endif /* DEBUG */
+}
#define ENCODED_PASS_LEN 24
static unsigned char challenge[NONCE_LEN];
#if HAVE_CSTRING
#include <cstring>
#endif
+#if HAVE_STRING_H
+#include <string.h>
+#endif
#define BUFFER_SIZE 10240
* -h interface help.
*/
char *my_program_name = NULL;
-int debug_enabled = 0;
+int print_debug_messages = 0;
static void
usage(void)
while (-1 != (opt = getopt(argc, argv, "hd"))) {
switch (opt) {
case 'd':
- debug_enabled = 1;
+ print_debug_messages = 1;
break;
case 'h':
usage();