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
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
Hide 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,
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
;
}
...
...
@@ -586,20 +589,20 @@ gnutls_ClientCreate( tls_t *p_tls )
char
*
psz_path
;
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
);
goto
error
;
gnutls_Addx509Directory
(
(
vlc_object_t
*
)
p_session
,
p_sys
->
x509_cred
,
psz_path
,
VLC_FALSE
);
free
(
psz_path
);
}
gnutls_Addx509Directory
(
(
vlc_object_t
*
)
p_session
,
p_sys
->
x509_cred
,
psz_path
,
VLC_FALSE
);
#ifdef X509_CA_BUNDLE
gnutls_Addx509File
(
(
vlc_object_t
*
)
p_session
,
p_sys
->
x509_cred
,
X509_CA_BUNDLE
,
VLC_FALSE
);
#endif
free
(
psz_path
);
if
(
asprintf
(
&
psz_path
,
"%s/ca-certificates.crt"
,
config_GetDataDir
(
(
vlc_object_t
*
)
p_session
)
)
!=
-
1
)
{
gnutls_Addx509File
(
(
vlc_object_t
*
)
p_session
,
p_sys
->
x509_cred
,
psz_path
,
VLC_FALSE
);
free
(
psz_path
);
}
p_session
->
pf_handshake2
=
gnutls_HandshakeAndValidate
;
}
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