gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to compile secushare / How to use GNUNET_CRYPTO_ecdsa_verify


From: TheJackiMonster
Subject: Re: Trying to compile secushare / How to use GNUNET_CRYPTO_ecdsa_verify
Date: Sat, 07 Nov 2020 17:15:40 +0100
User-agent: Evolution 3.38.1

Hi,

On Sat, 2020-11-07 at 16:56 +0100, Tobias Platen wrote:
> On Thu, 22 Oct 2020 20:00:01 +0200
> Tobias Platen <gnunet@platen-software.de> wrote:
> 
> > from gnunet-service-multicast.c:27:
> > 
> > gnunet-service-multicast.c: In function ‘check_cadet_join_request’:
> > gnunet-service-multicast.c:972:7: error: request for member ‘size’
> > in something not a structure or union
> >        GNUNET_CRYPTO_ecdsa_verify
> > (GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST,
> >        ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > gnunet-service-multicast.c:972:7: error: static assertion failed:
> > ""
> >        GNUNET_CRYPTO_ecdsa_verify
> > (GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST,
> >        ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > gnunet-service-multicast.c:972:7: warning: passing argument 2 of
> > ‘GNUNET_CRYPTO_ecdsa_verify_’ from incompatible pointer type [-
> > Wincompatible-pointer-types]
> >        GNUNET_CRYPTO_ecdsa_verify
> > (GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST,
> >        ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> 
> I changed one line as explained here, now I get a different error:
> diff --git a/src/multicast/gnunet-service-multicast.c
> b/src/multicast/gnunet-service-multicast.c
> index a787307..0d2e5e1 100644
> --- a/src/multicast/gnunet-service-multicast.c
> +++ b/src/multicast/gnunet-service-multicast.c
> @@ -970,7 +970,7 @@ check_cadet_join_request (void *cls,
>    }
>    if (GNUNET_OK !=
>        GNUNET_CRYPTO_ecdsa_verify
> (GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST,
> -                                  &req->purpose, &req->signature,
> +                                  req, &req->signature,
>                                    &req->member_pub_key))
>    {
>      GNUNET_break_op (0);
> 
> gnunet-service-multicast.c:972:7: error: static assertion failed: ""
> GNUNET_CRYPTO_ecdsa_verify
> (GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST,
> 
> The API has changed here, where can I find documentation?
> 

you can find the documentation here: https://docs.gnunet.org/doxygen

Also here is the part of documentation which will probably help you:
https://docs.gnunet.org/doxygen/d5/dfc/group__crypto.html#gad76e98d4ecf93d2fa21dda027ed258c4

Happy hacking
Jacki

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]