Browse Source

Never print the password in the logs.

pull/2/head
Rémi Duraffort 17 years ago
parent
commit
ec01f1da24
  1. 9
      modules/access/http.c
  2. 3
      modules/access/rtmp/access.c
  3. 3
      modules/access_output/rtmp.c
  4. 3
      modules/demux/live555.cpp

9
modules/access/http.c

@ -452,14 +452,7 @@ connect:
p_sys->auth.psz_realm );
if( psz_login != NULL && psz_password != NULL )
{
msg_Dbg( p_access, "retrying with user=%s, pwd=%s",
psz_login,
#if 1
"yeah right, like we're going to print a password."
#else
psz_password
#endif
);
msg_Dbg( p_access, "retrying with user=%s", psz_login );
p_sys->url.psz_username = psz_login;
p_sys->url.psz_password = psz_password;
Disconnect( p_access );

3
modules/access/rtmp/access.c

@ -128,8 +128,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys->p_thread->url.psz_username && *p_sys->p_thread->url.psz_username )
{
msg_Dbg( p_access, " user='%s', pwd='%s'",
p_sys->p_thread->url.psz_username, p_sys->p_thread->url.psz_password );
msg_Dbg( p_access, " user='%s'", p_sys->p_thread->url.psz_username );
}
/* Initialize thread variables */

3
modules/access_output/rtmp.c

@ -136,8 +136,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys->p_thread->url.psz_username && *p_sys->p_thread->url.psz_username )
{
msg_Dbg( p_access, " user='%s', pwd='%s'",
p_sys->p_thread->url.psz_username, p_sys->p_thread->url.psz_password );
msg_Dbg( p_access, " user='%s'", p_sys->p_thread->url.psz_username );
}
/* Initialize thread variables */

3
modules/demux/live555.cpp

@ -620,8 +620,7 @@ describe:
_("Please enter a valid login name and a password.") );
if( psz_user != NULL && psz_pwd != NULL )
{
msg_Dbg( p_demux, "retrying with user=%s, pwd=%s",
psz_user, psz_pwd );
msg_Dbg( p_demux, "retrying with user=%s", psz_user );
goto describe;
}
}

Loading…
Cancel
Save