Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ecefce41
Commit
ecefce41
authored
Jun 08, 2015
by
Rodger Combs
Committed by
Michael Niedermayer
Jun 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/tls_securetransport: fix SNI support when not verifying
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
074159ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tls_securetransport.c
libavformat/tls_securetransport.c
+3
-3
No files found.
libavformat/tls_securetransport.c
View file @
ecefce41
...
...
@@ -273,13 +273,13 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op
if
(
s
->
ca_file
)
{
if
((
ret
=
load_ca
(
h
))
<
0
)
goto
fail
;
CHECK_ERROR
(
SSLSetSessionOption
,
c
->
ssl_context
,
kSSLSessionOptionBreakOnServerAuth
,
true
);
}
if
(
s
->
ca_file
||
!
s
->
verify
)
CHECK_ERROR
(
SSLSetSessionOption
,
c
->
ssl_context
,
kSSLSessionOptionBreakOnServerAuth
,
true
);
if
(
s
->
cert_file
)
if
((
ret
=
load_cert
(
h
))
<
0
)
goto
fail
;
if
(
s
->
verify
)
CHECK_ERROR
(
SSLSetPeerDomainName
,
c
->
ssl_context
,
s
->
host
,
strlen
(
s
->
host
));
CHECK_ERROR
(
SSLSetPeerDomainName
,
c
->
ssl_context
,
s
->
host
,
strlen
(
s
->
host
));
CHECK_ERROR
(
SSLSetIOFuncs
,
c
->
ssl_context
,
tls_read_cb
,
tls_write_cb
);
CHECK_ERROR
(
SSLSetConnection
,
c
->
ssl_context
,
h
);
while
(
1
)
{
...
...
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