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
0da905c5
Commit
0da905c5
authored
Oct 14, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test3 debugging
parent
bf5f08db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test3.c
test/test3.c
+4
-4
No files found.
test/test3.c
View file @
0da905c5
...
...
@@ -166,7 +166,7 @@ void getopts(int argc, char** argv)
sprintf
(
options
.
nocert_mutual_auth_connection
,
"ssl://%s:18887"
,
argv
[
count
]);
printf
(
"Setting nocert_mutual_auth_connection to %s
\n
"
,
options
.
nocert_mutual_auth_connection
);
sprintf
(
options
.
server_auth_connection
,
"ssl://%s:1888
4
"
,
argv
[
count
]);
sprintf
(
options
.
server_auth_connection
,
"ssl://%s:1888
5
"
,
argv
[
count
]);
printf
(
"Setting server_auth_connection to %s
\n
"
,
options
.
server_auth_connection
);
sprintf
(
options
.
anon_connection
,
"ssl://%s:18886"
,
argv
[
count
]);
printf
(
"Setting anon_connection to %s
\n
"
,
options
.
anon_connection
);
...
...
@@ -653,8 +653,6 @@ int test2a_s(struct Options options)
opts
.
ssl
->
privateKeyPassword
=
options
.
client_key_pass
;
if
(
options
.
client_private_key_file
)
opts
.
ssl
->
privateKey
=
options
.
client_private_key_file
;
//opts.ssl->enabledCipherSuites = "DEFAULT";
//opts.ssl->enabledServerCertAuth = 1;
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
...
...
@@ -928,6 +926,7 @@ int test3a_s(struct Options options)
if
(
options
.
server_key_file
!=
NULL
)
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 */
opts.ssl->keyStore = options.client_key_file; /*file of certificate for client to present to server*/
if (options.client_key_pass)
...
...
@@ -935,6 +934,7 @@ int test3a_s(struct Options options)
if (options.client_private_key_file)
opts.ssl->privateKey = options.client_private_key_file;
/* remove these previous lines, for test proper */
#endif
MyLog
(
LOGA_DEBUG
,
"Connecting"
);
...
...
@@ -1490,7 +1490,7 @@ int main(int argc, char** argv)
fprintf
(
xml
,
"<testsuite name=
\"
test3
\"
tests=
\"
%d
\"
>
\n
"
,
ARRAY_SIZE
(
tests
)
-
1
);
setenv
(
"MQTT_C_CLIENT_TRACE"
,
"ON"
,
1
);
//
setenv("MQTT_C_CLIENT_TRACE_LEVEL", "ERROR", 1);
setenv
(
"MQTT_C_CLIENT_TRACE_LEVEL"
,
"ERROR"
,
1
);
getopts
(
argc
,
argv
);
if
(
options
.
test_no
==
0
)
{
/* run all the tests */
...
...
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