Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
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
eclipse
paho.mqtt.c
Commits
ca279453
Commit
ca279453
authored
Jul 06, 2018
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove default value for ciphers in set_cipher_list #347
parent
fb02e120
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
SSLSocket.c
src/SSLSocket.c
+6
-9
No files found.
src/SSLSocket.c
View file @
ca279453
...
@@ -513,7 +513,6 @@ void SSLSocket_terminate(void)
...
@@ -513,7 +513,6 @@ void SSLSocket_terminate(void)
int
SSLSocket_createContext
(
networkHandles
*
net
,
MQTTClient_SSLOptions
*
opts
)
int
SSLSocket_createContext
(
networkHandles
*
net
,
MQTTClient_SSLOptions
*
opts
)
{
{
int
rc
=
1
;
int
rc
=
1
;
const
char
*
ciphers
=
NULL
;
FUNC_ENTRY
;
FUNC_ENTRY
;
if
(
net
->
ctx
==
NULL
)
if
(
net
->
ctx
==
NULL
)
...
@@ -596,15 +595,13 @@ int SSLSocket_createContext(networkHandles* net, MQTTClient_SSLOptions* opts)
...
@@ -596,15 +595,13 @@ int SSLSocket_createContext(networkHandles* net, MQTTClient_SSLOptions* opts)
goto
free_ctx
;
goto
free_ctx
;
}
}
if
(
opts
->
enabledCipherSuites
==
NULL
)
if
(
opts
->
enabledCipherSuites
)
ciphers
=
"DEFAULT"
;
else
ciphers
=
opts
->
enabledCipherSuites
;
if
((
rc
=
SSL_CTX_set_cipher_list
(
net
->
ctx
,
ciphers
))
!=
1
)
{
{
SSLSocket_error
(
"SSL_CTX_set_cipher_list"
,
NULL
,
net
->
socket
,
rc
);
if
((
rc
=
SSL_CTX_set_cipher_list
(
net
->
ctx
,
opts
->
enabledCipherSuites
))
!=
1
)
goto
free_ctx
;
{
SSLSocket_error
(
"SSL_CTX_set_cipher_list"
,
NULL
,
net
->
socket
,
rc
);
goto
free_ctx
;
}
}
}
SSL_CTX_set_mode
(
net
->
ctx
,
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
);
SSL_CTX_set_mode
(
net
->
ctx
,
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
);
...
...
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