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

Laurent Alebarde l.alebarde at free.fr
Tue Sep 3 18:16:06 CEST 2013


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 <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
>>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130903/710d5a6c/attachment.htm>


More information about the zeromq-dev mailing list