So I will wait until your changes are done.

Le 03/09/2013 17:51, Pieter Hintjens a écrit :
Sounds useful, yes.

BTW I'm renaming the project prefixes to be simpler (curve, instead of
libcurve). Am making a PR now for that. It may conflict with your
changes...

On Tue, Sep 3, 2013 at 5:48 PM, Laurent Alebarde <[email protected]> wrote:
Hi,

I am testing a solution for full authentication. So I need the test frame in
curvezmq_selftest.c to manage two pairs of keys. That has leaded me to add a
path parameter to curvezmq_keypair_save & curvezmq_keypair_load.

The change in the existing test is :

BEFORE :
curvezmq_codec_set_keypair (server, curvezmq_keypair_load ());
int rc = curvezmq_keypair_save (keypair);

AFTER :
curvezmq_codec_set_keypair (server, curvezmq_keypair_load (""));
int rc = curvezmq_keypair_save (keypair, "");

Testing with a path "xxx/", it leads to (list of all changed or added lines)
:
curvezmq_codec_set_keypair (server, curvezmq_keypair_load ("xxx/"));
int rc = curvezmq_keypair_save (keypair, "xxx/");
assert (zfile_exists ("xxx/secret.key"));
zfile_delete ("xxx/public.key");
zfile_delete ("xxx/secret.key");
zfile_rmdir ("xxx");

If it may be of interrest, I can pull request it.

Cheers,


Laurent.


_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to