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
39f2e8f2
Commit
39f2e8f2
authored
Jun 27, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: missing stdlib.h include in curve_keygen.cpp
Solution: fixed this. Also minor code cleanups.
parent
a087ce55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
curve_keygen.cpp
tools/curve_keygen.cpp
+3
-6
No files found.
tools/curve_keygen.cpp
View file @
39f2e8f2
...
...
@@ -24,10 +24,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <assert.h>
#include <platform.hpp>
#include <zmq.h>
#include <zmq_utils.h>
int
main
(
void
)
{
...
...
@@ -40,11 +39,9 @@ int main (void)
char
public_key
[
41
];
char
secret_key
[
41
];
int
rc
=
zmq_curve_keypair
(
public_key
,
secret_key
);
if
(
rc
!=
0
)
{
if
(
zmq_errno
()
==
ENOTSUP
)
{
if
(
zmq_curve_keypair
(
public_key
,
secret_key
))
{
if
(
zmq_errno
()
==
ENOTSUP
)
puts
(
"To use curve_keygen, please install libsodium and then rebuild libzmq."
);
}
exit
(
1
);
}
...
...
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