projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Raise default RSA key length to 2048 bits.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
a13e266
..
602f18b
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-115,6
+115,7
@@
static struct option const long_options[] = {
#ifdef HAVE_MINGW
static struct WSAData wsa_state;
#ifdef HAVE_MINGW
static struct WSAData wsa_state;
+CRITICAL_SECTION mutex;
#endif
static void usage(bool status)
#endif
static void usage(bool status)
@@
-228,7
+229,7
@@
static bool parse_options(int argc, char **argv)
generate_keys &= ~7; /* Round it to bytes */
} else
generate_keys &= ~7; /* Round it to bytes */
} else
- generate_keys =
1024
;
+ generate_keys =
2048
;
break;
case 'R': /* chroot to NETNAME dir */
break;
case 'R': /* chroot to NETNAME dir */
@@
-568,6
+569,8
@@
int main(int argc, char **argv)
int main2(int argc, char **argv)
{
int main2(int argc, char **argv)
{
+ InitializeCriticalSection(&mutex);
+ EnterCriticalSection(&mutex);
#endif
if(!detach())
#endif
if(!detach())