[zeromq-dev] libcurve : adding a path to curvezmq_keypair_save & load

Pieter Hintjens ph at imatix.com
Tue Sep 3 17:51:28 CEST 2013


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 <l.alebarde at free.fr> 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list