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
5446bdca
Commit
5446bdca
authored
Mar 03, 2018
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add OpenSSL version check for X509_check_host
parent
18010d44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
SSLSocket.c
src/SSLSocket.c
+2
-0
travis-install.sh
travis-install.sh
+0
-3
No files found.
src/SSLSocket.c
View file @
5446bdca
...
@@ -674,6 +674,7 @@ int SSLSocket_connect(SSL* ssl, int sock, char* hostname, int verify)
...
@@ -674,6 +674,7 @@ int SSLSocket_connect(SSL* ssl, int sock, char* hostname, int verify)
if
(
error
==
SSL_ERROR_WANT_READ
||
error
==
SSL_ERROR_WANT_WRITE
)
if
(
error
==
SSL_ERROR_WANT_READ
||
error
==
SSL_ERROR_WANT_WRITE
)
rc
=
TCPSOCKET_INTERRUPTED
;
rc
=
TCPSOCKET_INTERRUPTED
;
}
}
#if (OPENSSL_VERSION_NUMBER >= 0x010002000)
/* 1.0.2 and later */
else
if
(
verify
==
1
)
else
if
(
verify
==
1
)
{
{
char
*
peername
=
NULL
;
char
*
peername
=
NULL
;
...
@@ -694,6 +695,7 @@ int SSLSocket_connect(SSL* ssl, int sock, char* hostname, int verify)
...
@@ -694,6 +695,7 @@ int SSLSocket_connect(SSL* ssl, int sock, char* hostname, int verify)
if
(
addr
!=
hostname
)
if
(
addr
!=
hostname
)
free
(
addr
);
free
(
addr
);
}
}
#endif
FUNC_EXIT_RC
(
rc
);
FUNC_EXIT_RC
(
rc
);
return
rc
;
return
rc
;
...
...
travis-install.sh
View file @
5446bdca
...
@@ -2,9 +2,6 @@
...
@@ -2,9 +2,6 @@
if
[
"
$TRAVIS_OS_NAME
"
==
"linux"
]
;
then
if
[
"
$TRAVIS_OS_NAME
"
==
"linux"
]
;
then
pwd
pwd
sudo
add-apt-repository
-y
"deb http://archive.ubuntu.com/ubuntu/ trusty main universe"
sudo
apt-get update
-qq
sudo
apt-get
install
-qq
libssl-dev
sudo
service mosquitto stop
sudo
service mosquitto stop
# Stop any mosquitto instance which may be still running from previous runs
# Stop any mosquitto instance which may be still running from previous runs
killall mosquitto
killall mosquitto
...
...
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