-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5481 from garlick/issue#5480
libzmqutil: fix portability to libzmq-4.1.5
- Loading branch information
Showing
2 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
#endif | ||
#include <stdbool.h> | ||
#include <errno.h> | ||
#include <zmq.h> | ||
|
||
#include "tap.h" | ||
#include "ccan/str/str.h" | ||
|
@@ -160,6 +161,7 @@ static struct test_vec badvec[] = { | |
" public-key = \"" PAIR1_PUB PAIR1_PUB "\"\n" | ||
" secret-key = \"" PAIR1_SEC "\"\n" | ||
}, | ||
#if (ZMQ_VERSION >= ZMQ_MAKE_VERSION(4,2,1)) | ||
{ | ||
.name = "cert with mismatched keypair", | ||
.input = | ||
|
@@ -168,6 +170,7 @@ static struct test_vec badvec[] = { | |
" public-key = \"" "[email protected]$A<cid63q(WEnR+&y" "\"\n" | ||
" secret-key = \"" PAIR1_SEC "\"\n" | ||
}, | ||
#endif | ||
}; | ||
|
||
void test_basic (void) | ||
|
@@ -350,8 +353,7 @@ void test_inval (void) | |
|
||
if (!(cert = cert_create ())) | ||
BAIL_OUT ("could not create cert"); | ||
if (!(cpub = cert_create_from (cert_public_txt (cert), | ||
NULL))) | ||
if (!(cpub = cert_create_from (cert_public_txt (cert), NULL))) | ||
BAIL_OUT ("could not create cert"); | ||
|
||
errno = 0; | ||
|