Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
freediameter
Commits
da60501b
Commit
da60501b
authored
Feb 18, 2010
by
Sebastien Decugis
Browse files
Fix initialization order for gnutls
parent
8144e4eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
freeDiameter/main.c
View file @
da60501b
...
...
@@ -73,12 +73,6 @@ int main(int argc, char * argv[])
/* Name this thread */
fd_log_threadname
(
"Main"
);
/* Initialize the config */
CHECK_FCT
(
fd_conf_init
()
);
/* Parse the command-line */
CHECK_FCT
(
main_cmdline
(
argc
,
argv
)
);
/* Initialize gcrypt and gnutls */
(
void
)
gcry_control
(
GCRYCTL_SET_THREAD_CBS
,
&
gcry_threads_pthread
);
(
void
)
gcry_control
(
GCRYCTL_ENABLE_QUICK_RANDOM
,
0
);
...
...
@@ -91,6 +85,12 @@ int main(int argc, char * argv[])
TRACE_DEBUG
(
INFO
,
"GNUTLS library '%s' initialized."
,
gnutls_check_version
(
NULL
));
}
/* Initialize the config */
CHECK_FCT
(
fd_conf_init
()
);
/* Parse the command-line */
CHECK_FCT
(
main_cmdline
(
argc
,
argv
)
);
/* Allow SIGINT and SIGTERM from this point */
CHECK_POSIX
(
pthread_create
(
&
sig_th
,
NULL
,
sig_hdl
,
NULL
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment