diff options
Diffstat (limited to 'src/abd/gnunet-abd.c')
-rw-r--r-- | src/abd/gnunet-abd.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/abd/gnunet-abd.c b/src/abd/gnunet-abd.c index 6f6521d98..1ed1adbe7 100644 --- a/src/abd/gnunet-abd.c +++ b/src/abd/gnunet-abd.c | |||
@@ -43,7 +43,7 @@ static struct GNUNET_NAMESTORE_Handle *ns; | |||
43 | /** | 43 | /** |
44 | * Private key for the our zone. | 44 | * Private key for the our zone. |
45 | */ | 45 | */ |
46 | static struct GNUNET_IDENTITY_PrivateKey zone_pkey; | 46 | static struct GNUNET_CRYPTO_PrivateKey zone_pkey; |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * EgoLookup | 49 | * EgoLookup |
@@ -98,12 +98,12 @@ static char *expiration; | |||
98 | /** | 98 | /** |
99 | * Subject key | 99 | * Subject key |
100 | */ | 100 | */ |
101 | struct GNUNET_IDENTITY_PublicKey subject_pkey; | 101 | struct GNUNET_CRYPTO_PublicKey subject_pkey; |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * Issuer key | 104 | * Issuer key |
105 | */ | 105 | */ |
106 | struct GNUNET_IDENTITY_PublicKey issuer_pkey; | 106 | struct GNUNET_CRYPTO_PublicKey issuer_pkey; |
107 | 107 | ||
108 | 108 | ||
109 | /** | 109 | /** |
@@ -277,9 +277,9 @@ handle_intermediate_result (void *cls, | |||
277 | 277 | ||
278 | printf ("%s Intermediate result: %s.%s <- %s.%s\n", | 278 | printf ("%s Intermediate result: %s.%s <- %s.%s\n", |
279 | prefix, | 279 | prefix, |
280 | GNUNET_IDENTITY_public_key_to_string (&dd->issuer_key), | 280 | GNUNET_CRYPTO_public_key_to_string (&dd->issuer_key), |
281 | dd->issuer_attribute, | 281 | dd->issuer_attribute, |
282 | GNUNET_IDENTITY_public_key_to_string (&dd->subject_key), | 282 | GNUNET_CRYPTO_public_key_to_string (&dd->subject_key), |
283 | dd->subject_attribute); | 283 | dd->subject_attribute); |
284 | } | 284 | } |
285 | 285 | ||
@@ -332,8 +332,8 @@ handle_verify_result (void *cls, | |||
332 | printf ("Delegation Chain:\n"); | 332 | printf ("Delegation Chain:\n"); |
333 | for (i = 0; i < d_count; i++) | 333 | for (i = 0; i < d_count; i++) |
334 | { | 334 | { |
335 | iss_key = GNUNET_IDENTITY_public_key_to_string (&dc[i].issuer_key); | 335 | iss_key = GNUNET_CRYPTO_public_key_to_string (&dc[i].issuer_key); |
336 | sub_key = GNUNET_IDENTITY_public_key_to_string (&dc[i].subject_key); | 336 | sub_key = GNUNET_CRYPTO_public_key_to_string (&dc[i].subject_key); |
337 | 337 | ||
338 | if (0 != dc[i].subject_attribute_len) | 338 | if (0 != dc[i].subject_attribute_len) |
339 | { | 339 | { |
@@ -358,8 +358,8 @@ handle_verify_result (void *cls, | |||
358 | printf ("\nDelegate(s):\n"); | 358 | printf ("\nDelegate(s):\n"); |
359 | for (i = 0; i < c_count; i++) | 359 | for (i = 0; i < c_count; i++) |
360 | { | 360 | { |
361 | iss_key = GNUNET_IDENTITY_public_key_to_string (&dele[i].issuer_key); | 361 | iss_key = GNUNET_CRYPTO_public_key_to_string (&dele[i].issuer_key); |
362 | sub_key = GNUNET_IDENTITY_public_key_to_string (&dele[i].subject_key); | 362 | sub_key = GNUNET_CRYPTO_public_key_to_string (&dele[i].subject_key); |
363 | printf ("%s.%s <- %s\n", iss_key, dele[i].issuer_attribute, sub_key); | 363 | printf ("%s.%s <- %s\n", iss_key, dele[i].issuer_attribute, sub_key); |
364 | GNUNET_free (iss_key); | 364 | GNUNET_free (iss_key); |
365 | GNUNET_free (sub_key); | 365 | GNUNET_free (sub_key); |
@@ -381,7 +381,7 @@ handle_verify_result (void *cls, | |||
381 | static void | 381 | static void |
382 | identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | 382 | identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) |
383 | { | 383 | { |
384 | const struct GNUNET_IDENTITY_PrivateKey *privkey; | 384 | const struct GNUNET_CRYPTO_PrivateKey *privkey; |
385 | 385 | ||
386 | el = NULL; | 386 | el = NULL; |
387 | if (NULL == ego) | 387 | if (NULL == ego) |
@@ -400,7 +400,7 @@ identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | |||
400 | { | 400 | { |
401 | 401 | ||
402 | if (GNUNET_OK != | 402 | if (GNUNET_OK != |
403 | GNUNET_IDENTITY_public_key_from_string (issuer_key, | 403 | GNUNET_CRYPTO_public_key_from_string (issuer_key, |
404 | &issuer_pkey)) | 404 | &issuer_pkey)) |
405 | { | 405 | { |
406 | fprintf (stderr, | 406 | fprintf (stderr, |
@@ -501,7 +501,7 @@ add_continuation (void *cls, int32_t success, const char *emsg) | |||
501 | 501 | ||
502 | static void | 502 | static void |
503 | get_existing_record (void *cls, | 503 | get_existing_record (void *cls, |
504 | const struct GNUNET_IDENTITY_PrivateKey *zone_key, | 504 | const struct GNUNET_CRYPTO_PrivateKey *zone_key, |
505 | const char *rec_name, | 505 | const char *rec_name, |
506 | unsigned int rd_count, | 506 | unsigned int rd_count, |
507 | const struct GNUNET_GNSRECORD_Data *rd) | 507 | const struct GNUNET_GNSRECORD_Data *rd) |
@@ -545,7 +545,7 @@ store_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | |||
545 | { | 545 | { |
546 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; | 546 | const struct GNUNET_CONFIGURATION_Handle *cfg = cls; |
547 | struct GNUNET_ABD_Delegate *cred; | 547 | struct GNUNET_ABD_Delegate *cred; |
548 | struct GNUNET_IDENTITY_PublicKey zone_pubkey; | 548 | struct GNUNET_CRYPTO_PublicKey zone_pubkey; |
549 | char *subject_pubkey_str; | 549 | char *subject_pubkey_str; |
550 | char *zone_pubkey_str; | 550 | char *zone_pubkey_str; |
551 | 551 | ||
@@ -586,12 +586,12 @@ store_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | |||
586 | 586 | ||
587 | // Get import subject public key string | 587 | // Get import subject public key string |
588 | subject_pubkey_str = | 588 | subject_pubkey_str = |
589 | GNUNET_IDENTITY_public_key_to_string (&cred->subject_key); | 589 | GNUNET_CRYPTO_public_key_to_string (&cred->subject_key); |
590 | 590 | ||
591 | // Get zone public key string | 591 | // Get zone public key string |
592 | GNUNET_IDENTITY_ego_get_public_key (ego, &zone_pubkey); | 592 | GNUNET_IDENTITY_ego_get_public_key (ego, &zone_pubkey); |
593 | zone_pubkey_str = | 593 | zone_pubkey_str = |
594 | GNUNET_IDENTITY_public_key_to_string (&zone_pubkey); | 594 | GNUNET_CRYPTO_public_key_to_string (&zone_pubkey); |
595 | 595 | ||
596 | // Check if the subject key in the signed import matches the zone's key it is issued to | 596 | // Check if the subject key in the signed import matches the zone's key it is issued to |
597 | if (strcmp (zone_pubkey_str, subject_pubkey_str) != 0) | 597 | if (strcmp (zone_pubkey_str, subject_pubkey_str) != 0) |
@@ -668,7 +668,7 @@ store_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | |||
668 | static void | 668 | static void |
669 | sign_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | 669 | sign_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) |
670 | { | 670 | { |
671 | const struct GNUNET_IDENTITY_PrivateKey *privkey; | 671 | const struct GNUNET_CRYPTO_PrivateKey *privkey; |
672 | struct GNUNET_ABD_Delegate *dele; | 672 | struct GNUNET_ABD_Delegate *dele; |
673 | struct GNUNET_TIME_Absolute etime_abs; | 673 | struct GNUNET_TIME_Absolute etime_abs; |
674 | char *res; | 674 | char *res; |
@@ -718,7 +718,7 @@ sign_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) | |||
718 | return; | 718 | return; |
719 | } | 719 | } |
720 | if (GNUNET_OK != | 720 | if (GNUNET_OK != |
721 | GNUNET_IDENTITY_public_key_from_string (subject_pubkey_str, | 721 | GNUNET_CRYPTO_public_key_from_string (subject_pubkey_str, |
722 | &subject_pkey)) | 722 | &subject_pkey)) |
723 | { | 723 | { |
724 | fprintf (stderr, | 724 | fprintf (stderr, |
@@ -883,7 +883,7 @@ run (void *cls, | |||
883 | GNUNET_SCHEDULER_shutdown (); | 883 | GNUNET_SCHEDULER_shutdown (); |
884 | return; | 884 | return; |
885 | } | 885 | } |
886 | if (GNUNET_OK != GNUNET_IDENTITY_public_key_from_string (subject, | 886 | if (GNUNET_OK != GNUNET_CRYPTO_public_key_from_string (subject, |
887 | &subject_pkey)) | 887 | &subject_pkey)) |
888 | { | 888 | { |
889 | fprintf (stderr, | 889 | fprintf (stderr, |
@@ -902,7 +902,7 @@ run (void *cls, | |||
902 | return; | 902 | return; |
903 | } | 903 | } |
904 | if (GNUNET_OK != | 904 | if (GNUNET_OK != |
905 | GNUNET_IDENTITY_public_key_from_string (issuer_key, | 905 | GNUNET_CRYPTO_public_key_from_string (issuer_key, |
906 | &issuer_pkey)) | 906 | &issuer_pkey)) |
907 | { | 907 | { |
908 | fprintf (stderr, | 908 | fprintf (stderr, |