/*****************************************************************************
* tls.c
*****************************************************************************
- * Copyright (C) 2004-2005 the VideoLAN team
+ * Copyright © 2004-2007 Rémi Denis-Courmont
* $Id$
*
* Authors: Rémi Denis-Courmont <rem # videolan.org>
* libvlc interface to the Transport Layer Security (TLS) plugins.
*/
-#include <stdlib.h>
#include <vlc/vlc.h>
-#include "vlc_tls.h"
+#include <vlc_tls.h>
static tls_t *
tls_Init( vlc_object_t *p_this )
return NULL;
}
- vlc_object_attach( p_tls, p_this->p_vlc );
+ vlc_object_attach( p_tls, p_this->p_libvlc );
vlc_object_yield( p_tls );
msg_Dbg( p_tls, "TLS/SSL provider initialized" );
}
vlc_mutex_lock( lockval.p_address );
vlc_object_release( p_tls );
-
+
i = p_tls->i_refcount;
if( i == 0 )
vlc_object_detach( p_tls );
p_tls = tls_Init( p_this );
if( p_tls == NULL )
return NULL;
-
+
p_session = p_tls->pf_client_create( p_tls );
if( p_session != NULL )
{