Created
May 20, 2015 15:04
-
-
Save jhunt/a4b86edf7dde75dde8ce to your computer and use it in GitHub Desktop.
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
diff -u -Naur zeromq-4.0.5/tests/test_security_curve.cpp zeromq-4.0.5.patch/tests/test_security_curve.cpp | |
--- zeromq-4.0.5/tests/test_security_curve.cpp 2014-10-14 04:06:40.000000000 -0400 | |
+++ zeromq-4.0.5.patch/tests/test_security_curve.cpp 2015-05-20 11:01:18.002004000 -0400 | |
@@ -20,10 +20,10 @@ | |
#include "testutil.hpp" | |
// We'll generate random test keys at startup | |
-static char client_public [40]; | |
-static char client_secret [40]; | |
-static char server_public [40]; | |
-static char server_secret [40]; | |
+static char client_public [41]; | |
+static char client_secret [41]; | |
+static char server_public [41]; | |
+static char server_secret [41]; | |
// -------------------------------------------------------------------------- | |
// This methods receives and validates ZAP requestes (allowing or denying | |
@@ -46,7 +46,7 @@ | |
int size = zmq_recv (handler, client_key, 32, 0); | |
assert (size == 32); | |
- char client_key_text [40]; | |
+ char client_key_text [41]; | |
zmq_z85_encode (client_key_text, client_key, 32); | |
assert (streq (version, "1.0")); | |
@@ -181,8 +181,8 @@ | |
// Check CURVE security with bogus client credentials | |
// This must be caught by the ZAP handler | |
- char bogus_public [40]; | |
- char bogus_secret [40]; | |
+ char bogus_public [41]; | |
+ char bogus_secret [41]; | |
zmq_curve_keypair (bogus_public, bogus_secret); | |
client = zmq_socket (ctx, ZMQ_DEALER); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment