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
8144e4eb
Commit
8144e4eb
authored
Feb 18, 2010
by
Sebastien Decugis
Browse files
Avoid a bug with newer gnutls library
parent
a43fb71f
Changes
1
Hide whitespace changes
Inline
Side-by-side
freeDiameter/main.c
View file @
8144e4eb
...
...
@@ -82,6 +82,7 @@ int main(int argc, char * argv[])
/* Initialize gcrypt and gnutls */
(
void
)
gcry_control
(
GCRYCTL_SET_THREAD_CBS
,
&
gcry_threads_pthread
);
(
void
)
gcry_control
(
GCRYCTL_ENABLE_QUICK_RANDOM
,
0
);
(
void
)
gcry_control
(
GCRYCTL_DISABLE_SECMEM
,
NULL
,
0
);
CHECK_GNUTLS_DO
(
gnutls_global_init
(),
return
EINVAL
);
if
(
!
gnutls_check_version
(
GNUTLS_VERSION
)
)
{
fprintf
(
stderr
,
"The GNUTLS library is too old; found '%s', need '"
GNUTLS_VERSION
"'
\n
"
,
gnutls_check_version
(
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