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
0db2bbe2
Commit
0db2bbe2
authored
Sep 13, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build didn't work if libsodium wasn't installed
parent
3298e5a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
curve_keygen.c
tools/curve_keygen.c
+10
-2
No files found.
tools/curve_keygen.c
View file @
0db2bbe2
...
...
@@ -27,11 +27,16 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sodium.h>
#include "z85_codec.h"
#include "../src/platform.hpp"
#ifdef HAVE_LIBSODIUM
# include <sodium.h>
# include "z85_codec.h"
#endif
int
main
(
void
)
{
#ifdef HAVE_LIBSODIUM
# if crypto_box_PUBLICKEYBYTES != 32 \
|| crypto_box_SECRETKEYBYTES != 32
# error "libsodium not built correctly"
...
...
@@ -59,5 +64,8 @@ int main (void)
puts
(
"
\n
== CURVE SECRET KEY =="
);
puts
(
encoded
);
#else
puts
(
"To build curve_keygen, please install libsodium and then rebuild libzmq."
);
#endif
exit
(
0
);
}
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