diff options
Diffstat (limited to 'src/abd/abd_serialization.c')
-rw-r--r-- | src/abd/abd_serialization.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/abd/abd_serialization.c b/src/abd/abd_serialization.c index c03fab7dc..4c219d791 100644 --- a/src/abd/abd_serialization.c +++ b/src/abd/abd_serialization.c | |||
@@ -199,7 +199,7 @@ GNUNET_ABD_delegates_serialize ( | |||
199 | c_rec.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_DELEGATE); | 199 | c_rec.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_DELEGATE); |
200 | c_rec.purpose.size = | 200 | c_rec.purpose.size = |
201 | htonl ((sizeof (struct DelegateEntry) + cd[i].issuer_attribute_len) | 201 | htonl ((sizeof (struct DelegateEntry) + cd[i].issuer_attribute_len) |
202 | - sizeof (struct GNUNET_CRYPTO_EcdsaSignature)); | 202 | - sizeof (struct GNUNET_IDENTITY_Signature)); |
203 | c_rec.expiration = GNUNET_htonll (cd[i].expiration.abs_value_us); | 203 | c_rec.expiration = GNUNET_htonll (cd[i].expiration.abs_value_us); |
204 | if (off + sizeof (c_rec) > dest_size) | 204 | if (off + sizeof (c_rec) > dest_size) |
205 | return -1; | 205 | return -1; |
@@ -445,13 +445,13 @@ GNUNET_ABD_delegate_serialize (struct GNUNET_ABD_Delegate *dele, | |||
445 | } | 445 | } |
446 | cdata->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_DELEGATE); | 446 | cdata->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_DELEGATE); |
447 | cdata->purpose.size = | 447 | cdata->purpose.size = |
448 | htonl (size - sizeof (struct GNUNET_CRYPTO_EcdsaSignature)); | 448 | htonl (size - sizeof (struct GNUNET_IDENTITY_Signature)); |
449 | 449 | ||
450 | GNUNET_memcpy (&cdata[1], tmp_str, attr_len); | 450 | GNUNET_memcpy (&cdata[1], tmp_str, attr_len); |
451 | 451 | ||
452 | if (GNUNET_OK != | 452 | if (GNUNET_OK != |
453 | GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_DELEGATE, | 453 | GNUNET_IDENTITY_signature_verify_ (GNUNET_SIGNATURE_PURPOSE_DELEGATE, |
454 | cdata, | 454 | &cdata->purpose, |
455 | &cdata->signature, | 455 | &cdata->signature, |
456 | &cdata->issuer_key)) | 456 | &cdata->issuer_key)) |
457 | { | 457 | { |
@@ -473,8 +473,8 @@ GNUNET_ABD_delegate_deserialize (const char *data, size_t data_size) | |||
473 | return NULL; | 473 | return NULL; |
474 | cdata = (struct DelegateEntry *) data; | 474 | cdata = (struct DelegateEntry *) data; |
475 | if (GNUNET_OK != | 475 | if (GNUNET_OK != |
476 | GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_DELEGATE, | 476 | GNUNET_IDENTITY_signature_verify_ (GNUNET_SIGNATURE_PURPOSE_DELEGATE, |
477 | cdata, | 477 | &cdata->purpose, |
478 | &cdata->signature, | 478 | &cdata->signature, |
479 | &cdata->issuer_key)) | 479 | &cdata->issuer_key)) |
480 | { | 480 | { |