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
6fefa416
Commit
6fefa416
authored
Sep 12, 2013
by
Richard Newton
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into inproc_connect_before_bind
parents
5f20d636
168efb97
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
8 deletions
+19
-8
.gitignore
.gitignore
+1
-0
.travis.yml
.travis.yml
+17
-1
test_security_curve.cpp
tests/test_security_curve.cpp
+0
-2
test_security_null.cpp
tests/test_security_null.cpp
+0
-2
test_security_plain.cpp
tests/test_security_plain.cpp
+0
-2
test_system.cpp
tests/test_system.cpp
+1
-1
No files found.
.gitignore
View file @
6fefa416
...
@@ -22,6 +22,7 @@ autom4te.cache
...
@@ -22,6 +22,7 @@ autom4te.cache
.*~
.*~
tools/curve_keygen.o
tools/curve_keygen.o
tools/curve_keygen
tools/curve_keygen
tests/test_ctx_destroy
tests/test_term_endpoint
tests/test_term_endpoint
tests/test_system
tests/test_system
tests/test_monitor
tests/test_monitor
...
...
.travis.yml
View file @
6fefa416
script
:
./autogen.sh && ./configure && make && make check
# libzmq
language
:
c
language
:
c
# Build required projects first
before_script
:
# libsodium
-
git clone git://github.com/jedisct1/libsodium.git
-
cd libsodium
-
./autogen.sh
-
./configure && make check
-
sudo make install
-
sudo ldconfig
-
cd ..
# Build and check libzmq
script
:
./autogen.sh && ./configure && make && make check
tests/test_security_curve.cpp
View file @
6fefa416
...
@@ -49,8 +49,6 @@ static void zap_handler (void *ctx)
...
@@ -49,8 +49,6 @@ static void zap_handler (void *ctx)
char
*
address
=
s_recv
(
zap
);
char
*
address
=
s_recv
(
zap
);
char
*
identity
=
s_recv
(
zap
);
char
*
identity
=
s_recv
(
zap
);
char
*
mechanism
=
s_recv
(
zap
);
char
*
mechanism
=
s_recv
(
zap
);
printf
(
"CURVE domain=%s address=%s identity=%s mechanism=%s
\n
"
,
domain
,
address
,
identity
,
mechanism
);
uint8_t
client_key
[
32
];
uint8_t
client_key
[
32
];
int
size
=
zmq_recv
(
zap
,
client_key
,
32
,
0
);
int
size
=
zmq_recv
(
zap
,
client_key
,
32
,
0
);
assert
(
size
==
32
);
assert
(
size
==
32
);
...
...
tests/test_security_null.cpp
View file @
6fefa416
...
@@ -43,8 +43,6 @@ zap_handler (void *ctx)
...
@@ -43,8 +43,6 @@ zap_handler (void *ctx)
char
*
identity
=
s_recv
(
zap
);
char
*
identity
=
s_recv
(
zap
);
char
*
mechanism
=
s_recv
(
zap
);
char
*
mechanism
=
s_recv
(
zap
);
printf
(
"domain=%s address=%s identity=%s mechanism=%s
\n
"
,
domain
,
address
,
identity
,
mechanism
);
assert
(
streq
(
version
,
"1.0"
));
assert
(
streq
(
version
,
"1.0"
));
assert
(
streq
(
mechanism
,
"NULL"
));
assert
(
streq
(
mechanism
,
"NULL"
));
assert
(
streq
(
identity
,
"IDENT"
));
assert
(
streq
(
identity
,
"IDENT"
));
...
...
tests/test_security_plain.cpp
View file @
6fefa416
...
@@ -43,8 +43,6 @@ zap_handler (void *ctx)
...
@@ -43,8 +43,6 @@ zap_handler (void *ctx)
char
*
mechanism
=
s_recv
(
zap
);
char
*
mechanism
=
s_recv
(
zap
);
char
*
username
=
s_recv
(
zap
);
char
*
username
=
s_recv
(
zap
);
char
*
password
=
s_recv
(
zap
);
char
*
password
=
s_recv
(
zap
);
printf
(
"PLAIN domain=%s address=%s identity=%s mechanism=%s
\n
"
,
domain
,
address
,
identity
,
mechanism
);
assert
(
streq
(
version
,
"1.0"
));
assert
(
streq
(
version
,
"1.0"
));
assert
(
streq
(
mechanism
,
"PLAIN"
));
assert
(
streq
(
mechanism
,
"PLAIN"
));
...
...
tests/test_system.cpp
View file @
6fefa416
...
@@ -71,7 +71,7 @@ int main (void)
...
@@ -71,7 +71,7 @@ int main (void)
printf
(
"I: Tune your system to increase maximum allowed file handles
\n
"
);
printf
(
"I: Tune your system to increase maximum allowed file handles
\n
"
);
#if defined (ZMQ_HAVE_OSX)
#if defined (ZMQ_HAVE_OSX)
printf
(
"I: On OS/X, run 'ulimit -n 1200' in bash"
);
printf
(
"I: On OS/X, run 'ulimit -n 1200' in bash"
);
#el
se
if defined (ZMQ_HAVE_LINUX)
#elif defined (ZMQ_HAVE_LINUX)
printf
(
"I: On Linux, run 'ulimit -n 1200' in bash"
);
printf
(
"I: On Linux, run 'ulimit -n 1200' in bash"
);
#endif
#endif
return
-
1
;
return
-
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