Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0bec3687
Commit
0bec3687
authored
Nov 04, 2004
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use --http-intf-* for certificates stuff instead of --http-*
(might conflict with HTTP streaming output at a later stage)
parent
7d5ba153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/control/http.c
modules/control/http.c
+8
-8
No files found.
modules/control/http.c
View file @
0bec3687
...
@@ -91,10 +91,10 @@ vlc_module_begin();
...
@@ -91,10 +91,10 @@ vlc_module_begin();
set_description
(
_
(
"HTTP remote control interface"
)
);
set_description
(
_
(
"HTTP remote control interface"
)
);
add_string
(
"http-host"
,
NULL
,
NULL
,
HOST_TEXT
,
HOST_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-host"
,
NULL
,
NULL
,
HOST_TEXT
,
HOST_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-src"
,
NULL
,
NULL
,
SRC_TEXT
,
SRC_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-src"
,
NULL
,
NULL
,
SRC_TEXT
,
SRC_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-cert"
,
NULL
,
NULL
,
CERT_TEXT
,
CERT_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-
intf-
cert"
,
NULL
,
NULL
,
CERT_TEXT
,
CERT_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-key"
,
NULL
,
NULL
,
KEY_TEXT
,
KEY_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-
intf-
key"
,
NULL
,
NULL
,
KEY_TEXT
,
KEY_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-ca"
,
NULL
,
NULL
,
CA_TEXT
,
CA_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-
intf-
ca"
,
NULL
,
NULL
,
CA_TEXT
,
CA_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-crl"
,
NULL
,
NULL
,
CRL_TEXT
,
CRL_LONGTEXT
,
VLC_TRUE
);
add_string
(
"http-
intf-
crl"
,
NULL
,
NULL
,
CRL_TEXT
,
CRL_LONGTEXT
,
VLC_TRUE
);
set_capability
(
"interface"
,
0
);
set_capability
(
"interface"
,
0
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
vlc_module_end
();
...
@@ -232,13 +232,13 @@ static int Open( vlc_object_t *p_this )
...
@@ -232,13 +232,13 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_vlm
=
NULL
;
p_sys
->
p_vlm
=
NULL
;
/* TODO: avoid possible code duplication in other modules */
/* TODO: avoid possible code duplication in other modules */
psz_cert
=
config_GetPsz
(
p_intf
,
"http-cert"
);
psz_cert
=
config_GetPsz
(
p_intf
,
"http-
intf-
cert"
);
if
(
psz_cert
!=
NULL
)
if
(
psz_cert
!=
NULL
)
{
{
const
char
*
psz_pem
;
const
char
*
psz_pem
;
msg_Dbg
(
p_intf
,
"enablind TLS for HTTP interface (cert file: %s)"
,
msg_Dbg
(
p_intf
,
"enablind TLS for HTTP interface (cert file: %s)"
,
psz_cert
);
psz_cert
);
psz_pem
=
config_GetPsz
(
p_intf
,
"http-key"
);
psz_pem
=
config_GetPsz
(
p_intf
,
"http-
intf-
key"
);
if
(
psz_pem
==
NULL
)
if
(
psz_pem
==
NULL
)
psz_pem
=
psz_cert
;
psz_pem
=
psz_cert
;
...
@@ -250,7 +250,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -250,7 +250,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
psz_pem
=
config_GetPsz
(
p_intf
,
"http-ca"
);
psz_pem
=
config_GetPsz
(
p_intf
,
"http-
intf-
ca"
);
if
(
(
psz_pem
!=
NULL
)
&&
tls_ServerAddCA
(
p_tls
,
psz_pem
)
)
if
(
(
psz_pem
!=
NULL
)
&&
tls_ServerAddCA
(
p_tls
,
psz_pem
)
)
{
{
msg_Err
(
p_intf
,
"TLS CA error"
);
msg_Err
(
p_intf
,
"TLS CA error"
);
...
@@ -259,7 +259,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -259,7 +259,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
psz_pem
=
config_GetPsz
(
p_intf
,
"http-crl"
);
psz_pem
=
config_GetPsz
(
p_intf
,
"http-
intf-
crl"
);
if
(
(
psz_pem
!=
NULL
)
&&
tls_ServerAddCRL
(
p_tls
,
psz_pem
)
)
if
(
(
psz_pem
!=
NULL
)
&&
tls_ServerAddCRL
(
p_tls
,
psz_pem
)
)
{
{
msg_Err
(
p_intf
,
"TLS CRL error"
);
msg_Err
(
p_intf
,
"TLS CRL error"
);
...
...
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