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: Tobias Platen
Subject: Re: Trying to compile secushare / How to use GNUNET_CRYPTO_ecdsa_verify
Date: Sat, 7 Nov 2020 16:56:00 +0100

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?



reply via email to

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