static int
validUsername(const char *user)
{
- const unsigned char *p = user;
+ const unsigned char *p = (const unsigned char *)user;
/* Leading whitespace? */
if (isspace(p[0]))
#define ENCODED_PASS_LEN 24
-static char challenge[NONCE_LEN];
-static char lmencoded_empty_pass[ENCODED_PASS_LEN],
+static unsigned char challenge[NONCE_LEN];
+static unsigned char lmencoded_empty_pass[ENCODED_PASS_LEN],
ntencoded_empty_pass[ENCODED_PASS_LEN];
SMB_Handle_Type handle = NULL;
return 3;
}
memcpy(challenge, handle->Encrypt_Key, NONCE_LEN);
- SMBencrypt("",challenge,lmencoded_empty_pass);
- SMBNTencrypt("",challenge,ntencoded_empty_pass);
+ SMBencrypt((unsigned char *)"",challenge,lmencoded_empty_pass);
+ SMBNTencrypt((unsigned char *)"",challenge,ntencoded_empty_pass);
return 0;
}
#ifdef DEBUG
#include <stdio.h>
#include <unistd.h>
-static char *__foo;
+static const char *__foo;
extern char debug_enabled;
#define debug(X...) if (debug_enabled) { \
fprintf(stderr,"ntlm-auth[%ld](%s:%d): ", (long)getpid(), \
/* The following two arrays need to be in step! */
/* We must make it possible for callers to specify these ... */
-
+#if 0
extern char *SMB_Prots[];
/*
* SMB_P_NT1,
* -1};
*/
+#endif
+
typedef struct SMB_Status {
union {
}
static unsigned char challenge[CHALLENGE_LEN + 1];
-static char *
+static unsigned char *
build_challenge(void)
{
size_t gotchars;
/* Debugging stuff */
extern char *myname;
-static char *__foo;
+static const char *__foo;
extern pid_t mypid;
extern char debug_enabled;
/*
- * $Id: Array.h,v 1.20 2005/01/03 16:08:24 robertc Exp $
+ * $Id: Array.h,v 1.21 2005/04/30 19:32:01 serassio Exp $
*
* AUTHOR: Alex Rousskov
*
}
template<class E>
-Vector<E>::Vector<E> (Vector<E> const &rhs)
+Vector<E>::Vector (Vector<E> const &rhs)
{
items = NULL;
capacity = 0;
/*
- * $Id: GNUregex.c,v 1.20 2005/01/06 10:55:34 serassio Exp $
+ * $Id: GNUregex.c,v 1.21 2005/04/30 19:32:01 serassio Exp $
*/
/* Extended regular expression matching and search library,
/* Compare that many; failure if mismatch, else move
* past them. */
if (translate
- ? bcmp_translate(d, d2, mcnt, translate)
+ ? bcmp_translate((unsigned char *)d, (unsigned char *)d2, mcnt, translate)
: memcmp(d, d2, mcnt))
goto fail;
d += mcnt, d2 += mcnt;
public:
//! Creates a new TestFixture instance.
virtual TestFixture *makeFixture() =0;
+ virtual ~TestFixtureFactory() {}
};
/*
- * $Id: ACLChecklist.h,v 1.20 2005/04/18 21:52:41 hno Exp $
+ * $Id: ACLChecklist.h,v 1.21 2005/04/30 19:32:01 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
public:
virtual void checkForAsync(ACLChecklist *) const = 0;
+ virtual ~AsyncState() {}
protected:
void changeState (ACLChecklist *, AsyncState *) const;
public:
static NullState *Instance();
virtual void checkForAsync(ACLChecklist *) const;
+ virtual ~NullState() {}
private:
static NullState _instance;
/*
- * $Id: ACLReplyMIMEType.h,v 1.6 2004/12/20 16:30:32 robertc Exp $
+ * $Id: ACLReplyMIMEType.h,v 1.7 2005/04/30 19:32:01 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
};
/* partial specialisation */
+
+template <>
int
ACLReplyHeaderStrategy<HDR_CONTENT_TYPE>::match (ACLData<char const *> * &data, ACLChecklist *checklist)
{
/*
- * $Id: ACLRequestMIMEType.h,v 1.2 2003/02/21 22:50:04 robertc Exp $
+ * $Id: ACLRequestMIMEType.h,v 1.3 2005/04/30 19:32:01 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
};
/* partial specialisation */
+
+template <>
int
ACLRequestHeaderStrategy<HDR_CONTENT_TYPE>::match (ACLData<char const *> * &data, ACLChecklist *checklist)
{
/*
- * $Id: ESIParser.h,v 1.3 2005/03/28 21:44:12 hno Exp $
+ * $Id: ESIParser.h,v 1.4 2005/04/30 19:32:01 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
virtual void end(const char *el) = 0;
virtual void parserDefault (const char *s, int len) =0;
virtual void parserComment (const char *s) = 0;
-};
+ virtual ~ESIParserClient() {}}
+
+;
class ESIParser : public RefCountable
{
print "/* Generated automatically from cf.data.pre"
print " * DO NOT EDIT"
print "*/"
- print "struct { const char *name; const char *enable; int defined;} defines[] = {"
+ print "static struct { const char *name; const char *enable; int defined;} defines[] = {"
define["DELAY_POOLS"]="--enable-delay-pools"
define["HTTP_VIOLATIONS"]="--enable-http-violations"
define["SQUID_SNMP"]="--enable-snmp"
/*
- * $Id: main.cc,v 1.409 2005/04/23 12:28:11 serassio Exp $
+ * $Id: main.cc,v 1.410 2005/04/30 19:32:01 serassio Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
if ((cpid = fork()) == 0) {
/* child */
- execl(script, squid_start_script, NULL);
+ execl(script, squid_start_script, (char *)NULL);
_exit(-1);
} else {
do {