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
a2b08b8e
Commit
a2b08b8e
authored
Oct 23, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore test3 back - removing debug
parent
6388cd17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
test3.c
test/test3.c
+2
-18
No files found.
test/test3.c
View file @
a2b08b8e
...
@@ -926,14 +926,6 @@ int test3a_s(struct Options options)
...
@@ -926,14 +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*/
/* 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 */
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
if
(
!
(
assert
(
"Good rc from connect"
,
(
rc
=
MQTTClient_connect
(
c
,
&
opts
))
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
)))
if
(
!
(
assert
(
"Good rc from connect"
,
(
rc
=
MQTTClient_connect
(
c
,
&
opts
))
==
MQTTCLIENT_SUCCESS
,
"rc was %d"
,
rc
)))
...
@@ -1007,14 +999,6 @@ int test3a_m(struct Options options)
...
@@ -1007,14 +999,6 @@ 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
)))
...
@@ -1426,7 +1410,7 @@ int test5c(struct Options options)
...
@@ -1426,7 +1410,7 @@ int test5c(struct Options options)
//opts.ssl->trustStore = /*file of certificates trusted by client*/
//opts.ssl->trustStore = /*file of certificates trusted by client*/
//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 != NULL) opts.ssl->privateKeyPassword = options.client_key_pass;
//if (options.client_key_pass != NULL) opts.ssl->privateKeyPassword = options.client_key_pass;
//
opts.ssl->enabledCipherSuites = "DEFAULT";
opts
.
ssl
->
enabledCipherSuites
=
"DEFAULT"
;
opts
.
ssl
->
enableServerCertAuth
=
0
;
opts
.
ssl
->
enableServerCertAuth
=
0
;
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
...
@@ -1489,7 +1473,7 @@ int main(int argc, char** argv)
...
@@ -1489,7 +1473,7 @@ int main(int argc, char** argv)
{
{
int
*
numtests
=
&
tests
;
int
*
numtests
=
&
tests
;
int
rc
=
0
;
int
rc
=
0
;
int
(
*
tests
[])()
=
{
NULL
,
test1
,
test2a_s
,
test2a_m
,
test2b
,
test2c
,
test3a_s
,
test3a_m
,
test3b
,
test4_s
,
test4_m
,
/*test5a, test5b,
*/
test5c
};
int
(
*
tests
[])()
=
{
NULL
,
test1
,
test2a_s
,
test2a_m
,
test2b
,
test2c
,
test3a_s
,
test3a_m
,
test3b
,
test4_s
,
test4_m
,
/*test5a, test5b,
test5c */
};
MQTTClient_nameValue
*
info
;
MQTTClient_nameValue
*
info
;
xml
=
fopen
(
"TEST-test3.xml"
,
"w"
);
xml
=
fopen
(
"TEST-test3.xml"
,
"w"
);
...
...
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