]> git.sesse.net Git - vlc/blobdiff - src/network/tls.c
Removes trailing spaces. Removes tabs.
[vlc] / src / network / tls.c
index eb145d148f7d8a14a4971f7f71ce6b97d760441f..c74be68bdb81ad82cb53b71ef0eb18b295f5fcf6 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * 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 )
@@ -61,7 +60,7 @@ 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" );
     }
@@ -80,7 +79,7 @@ tls_Deinit( tls_t *p_tls )
     vlc_mutex_lock( lockval.p_address );
 
     vlc_object_release( p_tls );
-    
     i = p_tls->i_refcount;
     if( i == 0 )
         vlc_object_detach( p_tls );
@@ -165,7 +164,7 @@ tls_ClientCreate( vlc_object_t *p_this, int fd, const char *psz_hostname )
     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 )
     {