Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
7d2aea5b
Commit
7d2aea5b
authored
Nov 06, 2004
by
Rémi Denis-Courmont
Browse files
gnutls version check
parent
6967fdf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/misc/gnutls.c
View file @
7d2aea5b
...
...
@@ -451,7 +451,6 @@ Open( vlc_object_t *p_this )
var_Create
(
p_this
->
p_libvlc
,
"gnutls_count"
,
VLC_VAR_INTEGER
);
var_Get
(
p_this
->
p_libvlc
,
"gnutls_count"
,
&
count
);
/* FIXME: should check version number */
if
(
count
.
i_int
==
0
)
{
__p_gcry_data
=
p_this
;
...
...
@@ -463,6 +462,13 @@ Open( vlc_object_t *p_this )
vlc_mutex_unlock
(
lock
.
p_address
);
return
VLC_EGENERIC
;
}
if
(
gnutls_check_version
(
"1.0.0"
)
==
NULL
)
{
gnutls_global_deinit
(
);
vlc_mutex_unlock
(
lock
.
p_address
);
msg_Err
(
p_this
,
"unsupported GNUTLS version"
);
return
VLC_EGENERIC
;
}
msg_Dbg
(
p_this
,
"GNUTLS initialized"
);
}
...
...
Write
Preview
Supports
Markdown
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