Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
03cb9032
Commit
03cb9032
authored
Mar 07, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use dialog_Login
parent
da927a1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
22 deletions
+15
-22
modules/access/http.c
modules/access/http.c
+10
-14
modules/demux/live555.cpp
modules/demux/live555.cpp
+5
-8
No files found.
modules/access/http.c
View file @
03cb9032
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#include <vlc_access.h>
#include <vlc_access.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_meta.h>
#include <vlc_meta.h>
#include <vlc_network.h>
#include <vlc_network.h>
#include <vlc_url.h>
#include <vlc_url.h>
...
@@ -433,8 +433,7 @@ connect:
...
@@ -433,8 +433,7 @@ connect:
if
(
p_sys
->
i_code
==
401
)
if
(
p_sys
->
i_code
==
401
)
{
{
char
*
psz_login
=
NULL
,
*
psz_password
=
NULL
;
char
*
psz_login
,
*
psz_password
;
char
psz_msg
[
250
];
int
i_ret
;
int
i_ret
;
/* FIXME ? */
/* FIXME ? */
if
(
p_sys
->
url
.
psz_username
&&
p_sys
->
url
.
psz_password
&&
if
(
p_sys
->
url
.
psz_username
&&
p_sys
->
url
.
psz_password
&&
...
@@ -443,21 +442,18 @@ connect:
...
@@ -443,21 +442,18 @@ connect:
Disconnect
(
p_access
);
Disconnect
(
p_access
);
goto
connect
;
goto
connect
;
}
}
snprintf
(
psz_msg
,
250
,
_
(
"Please enter a valid login name and a password for realm %s."
),
p_sys
->
auth
.
psz_realm
);
msg_Dbg
(
p_access
,
"authentication failed for realm %s"
,
msg_Dbg
(
p_access
,
"authentication failed for realm %s"
,
p_sys
->
auth
.
psz_realm
);
p_sys
->
auth
.
psz_realm
);
i_ret
=
intf_UserLoginPassword
(
p_access
,
_
(
"HTTP authentication"
),
dialog_Login
(
p_access
,
&
psz_login
,
&
psz_password
,
psz_msg
,
&
psz_login
,
&
psz_password
);
_
(
"HTTP authentication"
),
if
(
i_ret
==
DIALOG_OK_YES
)
_
(
"Please enter a valid login name and a password for realm %s."
),
p_sys
->
auth
.
psz_realm
);
if
(
psz_login
!=
NULL
&&
psz_password
!=
NULL
)
{
{
msg_Dbg
(
p_access
,
"retrying with user=%s, pwd=%s"
,
msg_Dbg
(
p_access
,
"retrying with user=%s, pwd=%s"
,
psz_login
,
psz_password
);
psz_login
,
psz_password
);
if
(
psz_login
)
p_sys
->
url
.
psz_username
=
strdup
(
psz_login
);
p_sys
->
url
.
psz_username
=
psz_login
;
if
(
psz_password
)
p_sys
->
url
.
psz_password
=
strdup
(
psz_password
);
p_sys
->
url
.
psz_password
=
psz_password
;
free
(
psz_login
);
free
(
psz_password
);
Disconnect
(
p_access
);
Disconnect
(
p_access
);
goto
connect
;
goto
connect
;
}
}
...
...
modules/demux/live555.cpp
View file @
03cb9032
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_demux.h>
#include <vlc_demux.h>
#include <vlc_
interface
.h>
#include <vlc_
dialog
.h>
#include <vlc_network.h>
#include <vlc_network.h>
#include <vlc_url.h>
#include <vlc_url.h>
...
@@ -604,17 +604,14 @@ describe:
...
@@ -604,17 +604,14 @@ describe:
if
(
i_code
==
401
)
if
(
i_code
==
401
)
{
{
int
i_result
;
msg_Dbg
(
p_demux
,
"authentication failed"
);
msg_Dbg
(
p_demux
,
"authentication failed"
);
free
(
psz_user
);
free
(
psz_user
);
free
(
psz_pwd
);
free
(
psz_pwd
);
psz_user
=
psz_pwd
=
NULL
;
dialog_Login
(
p_demux
,
&
psz_user
,
&
psz_pwd
,
_
(
"RTSP authentication"
),
i_result
=
intf_UserLoginPassword
(
p_demux
,
_
(
"RTSP authentication"
),
_
(
"Please enter a valid login name and a password."
)
);
_
(
"Please enter a valid login name and a password."
),
if
(
psz_user
!=
NULL
&&
psz_pwd
!=
NULL
)
&
psz_user
,
&
psz_pwd
);
if
(
i_result
==
DIALOG_OK_YES
)
{
{
msg_Dbg
(
p_demux
,
"retrying with user=%s, pwd=%s"
,
msg_Dbg
(
p_demux
,
"retrying with user=%s, pwd=%s"
,
psz_user
,
psz_pwd
);
psz_user
,
psz_pwd
);
...
...
Write
Preview
Markdown
is supported
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