Fixed separate compile errors in options.c and ntlm.c that occur
on strict C compilers (such as old versions of gcc) that require
that C variable declarations occur at the start of a {} block,
not in the middle.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3219
e7ae566f-a301-0410-adde-
c780ea21d3b5
}
static inline void
-uninit_proxy (struct context *c, const int scope)
+uninit_proxy (struct context *c)
{
}
}
if (ntlmv2_enabled){ /* Generate NTLMv2 response */
-
+ int tib_len;
+
/* NTLMv2 hash */
my_strupr((unsigned char *)strcpy(userdomain, username));
if (strlen(username) + strlen(domain) < sizeof(userdomain))
ntlmv2_blob[0x18]=0; /* Unknown, zero should work */
/* Add target information block to the blob */
- int tib_len;
if (( *((long *)&buf2[0x14]) & 0x00800000) == 0x00800000){ /* Check for Target Information block */
tib_len = buf2[0x28];/* Get Target Information block size */
if (tib_len > 96) tib_len = 96;
struct env_set *es)
{
struct gc_arena gc = gc_new ();
- ASSERT (MAX_PARMS >= 5);
const bool pull_mode = BOOL_CAST (permission_mask & OPT_P_PULL_MODE);
+ ASSERT (MAX_PARMS >= 5);
if (!file)
{
file = "[CMD-LINE]";