Commit 7d2aea5b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

gnutls version check

parent 6967fdf4
......@@ -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" );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment