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
8b5f49d1
Commit
8b5f49d1
authored
Mar 05, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for Root CA certificates in VLC data dir
parent
12c4a861
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
modules/misc/gnutls.c
modules/misc/gnutls.c
+14
-11
No files found.
modules/misc/gnutls.c
View file @
8b5f49d1
...
@@ -529,6 +529,9 @@ gnutls_Addx509File( vlc_object_t *p_this,
...
@@ -529,6 +529,9 @@ gnutls_Addx509File( vlc_object_t *p_this,
return
gnutls_Addx509Directory
(
p_this
,
cred
,
psz_path
,
b_priv
);
return
gnutls_Addx509Directory
(
p_this
,
cred
,
psz_path
,
b_priv
);
}
}
}
}
else
msg_Warn
(
p_this
,
"Cannot add x509 credentials (%s): %s"
,
psz_path
,
strerror
(
errno
)
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -586,20 +589,20 @@ gnutls_ClientCreate( tls_t *p_tls )
...
@@ -586,20 +589,20 @@ gnutls_ClientCreate( tls_t *p_tls )
char
*
psz_path
;
char
*
psz_path
;
if
(
asprintf
(
&
psz_path
,
"%s/"
CONFIG_DIR
"/ssl/certs"
,
if
(
asprintf
(
&
psz_path
,
"%s/"
CONFIG_DIR
"/ssl/certs"
,
p_tls
->
p_vlc
->
psz_homedir
)
=
=
-
1
)
p_tls
->
p_vlc
->
psz_homedir
)
!
=
-
1
)
{
{
gnutls_certificate_free_credentials
(
p_sys
->
x509_cred
);
gnutls_Addx509Directory
(
(
vlc_object_t
*
)
p_session
,
goto
error
;
p_sys
->
x509_cred
,
psz_path
,
VLC_FALSE
);
free
(
psz_path
);
}
}
gnutls_Addx509Directory
(
(
vlc_object_t
*
)
p_session
,
p_sys
->
x509_cred
,
if
(
asprintf
(
&
psz_path
,
"%s/ca-certificates.crt"
,
psz_path
,
VLC_FALSE
);
config_GetDataDir
(
(
vlc_object_t
*
)
p_session
)
)
!=
-
1
)
#ifdef X509_CA_BUNDLE
{
gnutls_Addx509File
(
(
vlc_object_t
*
)
p_session
,
p_sys
->
x509_cred
,
gnutls_Addx509File
(
(
vlc_object_t
*
)
p_session
,
X509_CA_BUNDLE
,
VLC_FALSE
);
p_sys
->
x509_cred
,
psz_path
,
VLC_FALSE
);
#endif
free
(
psz_path
);
free
(
psz_path
);
}
p_session
->
pf_handshake2
=
gnutls_HandshakeAndValidate
;
p_session
->
pf_handshake2
=
gnutls_HandshakeAndValidate
;
}
}
else
else
...
...
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