Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
90
Issues
90
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
d887baa0
Commit
d887baa0
authored
Apr 28, 2018
by
louiz’
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash when botan policy does not allow any available ciphersuite
parent
f481e2f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
CHANGELOG.rst
CHANGELOG.rst
+6
-0
src/network/tcp_client_socket_handler.cpp
src/network/tcp_client_socket_handler.cpp
+11
-4
No files found.
CHANGELOG.rst
View file @
d887baa0
Version 7.3
===========
- Fix an uncaught exception with botan, when policy does not allow any
available ciphersuite.
Version 7.2 - 2018-01-24
========================
...
...
src/network/tcp_client_socket_handler.cpp
View file @
d887baa0
...
...
@@ -146,15 +146,22 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri
||
errno
==
EISCONN
)
{
log_info
(
"Connection success."
);
#ifdef BOTAN_FOUND
if
(
this
->
use_tls
)
try
{
this
->
start_tls
(
this
->
address
,
this
->
port
);
}
catch
(
const
Botan
::
Exception
&
e
)
{
this
->
on_connection_failed
(
"TLS error: "
s
+
e
.
what
());
this
->
close
();
return
;
}
#endif
TimedEventsManager
::
instance
().
cancel
(
"connection_timeout"
+
std
::
to_string
(
this
->
socket
));
this
->
poller
->
add_socket_handler
(
this
);
this
->
connected
=
true
;
this
->
connecting
=
false
;
#ifdef BOTAN_FOUND
if
(
this
->
use_tls
)
this
->
start_tls
(
this
->
address
,
this
->
port
);
#endif
this
->
connection_date
=
std
::
chrono
::
system_clock
::
now
();
// Get our local TCP port and store it
...
...
louiz’
@louiz
mentioned in issue
#3351 (closed)
·
Apr 28, 2018
mentioned in issue
#3351 (closed)
mentioned in issue #3351
Toggle commit list
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