Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
07229c72
Commit
07229c72
authored
Dec 20, 2014
by
Joe Eli McIlvain
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1280 from hintjens/master
Problem: very hard to debug security mechanism mismatch
parents
187c7438
17937ffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
stream_engine.cpp
src/stream_engine.cpp
+12
-0
No files found.
src/stream_engine.cpp
View file @
07229c72
...
...
@@ -660,6 +660,18 @@ bool zmq::stream_engine_t::handshake ()
}
#endif
else
{
// Temporary support for security debugging
char
mechanism
[
21
];
memcpy
(
mechanism
,
greeting_recv
+
12
,
20
);
mechanism
[
20
]
=
0
;
printf
(
"LIBZMQ I: security failure, self=%s peer=%s
\n
"
,
options
.
mechanism
==
ZMQ_NULL
?
"NULL"
:
options
.
mechanism
==
ZMQ_PLAIN
?
"PLAIN"
:
options
.
mechanism
==
ZMQ_CURVE
?
"CURVE"
:
options
.
mechanism
==
ZMQ_GSSAPI
?
"GSSAPI"
:
"OTHER"
,
mechanism
);
error
(
protocol_error
);
return
false
;
}
...
...
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