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
9c4d19f3
Commit
9c4d19f3
authored
Oct 14, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test3 debugging
parent
da03142e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test3.c
test/test3.c
+8
-2
No files found.
test/test3.c
View file @
9c4d19f3
...
@@ -926,7 +926,6 @@ int test3a_s(struct Options options)
...
@@ -926,7 +926,6 @@ int test3a_s(struct Options options)
if
(
options
.
server_key_file
!=
NULL
)
if
(
options
.
server_key_file
!=
NULL
)
opts
.
ssl
->
trustStore
=
options
.
server_key_file
;
/*file of certificates trusted by client*/
opts
.
ssl
->
trustStore
=
options
.
server_key_file
;
/*file of certificates trusted by client*/
#if 0
/* these settings are for mutual authentication, should not be needed */
/* these settings are for mutual authentication, should not be needed */
opts
.
ssl
->
keyStore
=
options
.
client_key_file
;
/*file of certificate for client to present to server*/
opts
.
ssl
->
keyStore
=
options
.
client_key_file
;
/*file of certificate for client to present to server*/
if
(
options
.
client_key_pass
)
if
(
options
.
client_key_pass
)
...
@@ -934,7 +933,6 @@ int test3a_s(struct Options options)
...
@@ -934,7 +933,6 @@ int test3a_s(struct Options options)
if
(
options
.
client_private_key_file
)
if
(
options
.
client_private_key_file
)
opts
.
ssl
->
privateKey
=
options
.
client_private_key_file
;
opts
.
ssl
->
privateKey
=
options
.
client_private_key_file
;
/* remove these previous lines, for test proper */
/* remove these previous lines, for test proper */
#endif
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
...
@@ -1009,6 +1007,14 @@ int test3a_m(struct Options options)
...
@@ -1009,6 +1007,14 @@ int test3a_m(struct Options options)
if
(
options
.
server_key_file
!=
NULL
)
if
(
options
.
server_key_file
!=
NULL
)
opts
.
ssl
->
trustStore
=
options
.
server_key_file
;
/*file of certificates trusted by client*/
opts
.
ssl
->
trustStore
=
options
.
server_key_file
;
/*file of certificates trusted by client*/
/* these settings are for mutual authentication, should not be needed */
opts
.
ssl
->
keyStore
=
options
.
client_key_file
;
/*file of certificate for client to present to server*/
if
(
options
.
client_key_pass
)
opts
.
ssl
->
privateKeyPassword
=
options
.
client_key_pass
;
if
(
options
.
client_private_key_file
)
opts
.
ssl
->
privateKey
=
options
.
client_private_key_file
;
/* remove these previous lines, for test proper */
if
(
!
(
assert
(
"Good rc from setCallbacks"
,
(
rc
=
MQTTClient_setCallbacks
(
c
,
NULL
,
NULL
,
multiThread_messageArrived
,
if
(
!
(
assert
(
"Good rc from setCallbacks"
,
(
rc
=
MQTTClient_setCallbacks
(
c
,
NULL
,
NULL
,
multiThread_messageArrived
,
multiThread_deliveryComplete
))
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
)))
multiThread_deliveryComplete
))
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
)))
...
...
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