aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_identity_service.h
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2020-11-08 01:57:15 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2020-11-08 01:57:15 +0100
commitca808598b9c28e1bb089d2d8cb7ec9332f2c0137 (patch)
treee2268b0adf857f01bd3289b88f6e5f5a625b9525 /src/include/gnunet_identity_service.h
parentc517aefd0325f6113008a6eb834c6dfe5156cb65 (diff)
downloadgnunet-ca808598b9c28e1bb089d2d8cb7ec9332f2c0137.tar.gz
gnunet-ca808598b9c28e1bb089d2d8cb7ec9332f2c0137.zip
fixed signature asserts
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/include/gnunet_identity_service.h')
-rw-r--r--src/include/gnunet_identity_service.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h
index 64799f195..66761e526 100644
--- a/src/include/gnunet_identity_service.h
+++ b/src/include/gnunet_identity_service.h
@@ -523,7 +523,7 @@ GNUNET_IDENTITY_private_key_sign_ (const struct GNUNET_IDENTITY_PrivateKey *priv
523 */ 523 */
524#define GNUNET_IDENTITY_private_key_sign(priv,ps,sig) do { \ 524#define GNUNET_IDENTITY_private_key_sign(priv,ps,sig) do { \
525 /* check size is set correctly */ \ 525 /* check size is set correctly */ \
526 GNUNET_assert (htonl ((ps)->purpose.size) == sizeof (*(ps))); \ 526 GNUNET_assert (ntohl ((ps)->purpose.size) == sizeof (*(ps))); \
527 /* check 'ps' begins with the purpose */ \ 527 /* check 'ps' begins with the purpose */ \
528 GNUNET_static_assert (((void*) (ps)) == \ 528 GNUNET_static_assert (((void*) (ps)) == \
529 ((void*) &(ps)->purpose)); \ 529 ((void*) &(ps)->purpose)); \