diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-17 20:26:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-17 20:26:02 +0000 |
commit | aabe756fa2d764481c337060d27ff03c74b9e320 (patch) | |
tree | 4f0f5222a0e8cab9d7e99ca6a0f16c6752562472 /src/identity/identity_api.c | |
parent | 4fbefa9b5336452df611c4f02232a45caa1d0e6f (diff) | |
download | gnunet-aabe756fa2d764481c337060d27ff03c74b9e320.tar.gz gnunet-aabe756fa2d764481c337060d27ff03c74b9e320.zip |
-misc bugfixes and test-fixes
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r-- | src/identity/identity_api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index e5c871bbe..54144c5bc 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -707,15 +707,15 @@ GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *id, | |||
707 | * | 707 | * |
708 | * @param id identity service to use | 708 | * @param id identity service to use |
709 | * @param identifier desired identifier | 709 | * @param identifier desired identifier |
710 | * @param cb function to call with the result (will only be called once) | 710 | * @param cont function to call with the result (will only be called once) |
711 | * @param cb_cls closure for cb | 711 | * @param cont_cls closure for cont |
712 | * @return handle to abort the operation | 712 | * @return handle to abort the operation |
713 | */ | 713 | */ |
714 | struct GNUNET_IDENTITY_Operation * | 714 | struct GNUNET_IDENTITY_Operation * |
715 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, | 715 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, |
716 | const char *identifier, | 716 | const char *identifier, |
717 | GNUNET_IDENTITY_Callback cb, | 717 | GNUNET_IDENTITY_Continuation cont, |
718 | void *cb_cls) | 718 | void *cont_cls) |
719 | { | 719 | { |
720 | struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *enc; | 720 | struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *enc; |
721 | struct GNUNET_IDENTITY_Operation *op; | 721 | struct GNUNET_IDENTITY_Operation *op; |
@@ -741,8 +741,8 @@ GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, | |||
741 | sizeof (struct GNUNET_IDENTITY_CreateRequestMessage) + | 741 | sizeof (struct GNUNET_IDENTITY_CreateRequestMessage) + |
742 | enc_len + slen); | 742 | enc_len + slen); |
743 | op->h = id; | 743 | op->h = id; |
744 | op->cb = cb; | 744 | op->cont = cont; |
745 | op->cls = cb_cls; | 745 | op->cls = cont_cls; |
746 | crm = (struct GNUNET_IDENTITY_CreateRequestMessage *) &op[1]; | 746 | crm = (struct GNUNET_IDENTITY_CreateRequestMessage *) &op[1]; |
747 | crm->header.type = htons (GNUNET_MESSAGE_TYPE_IDENTITY_CREATE); | 747 | crm->header.type = htons (GNUNET_MESSAGE_TYPE_IDENTITY_CREATE); |
748 | crm->header.size = htons (sizeof (struct GNUNET_IDENTITY_CreateRequestMessage) + | 748 | crm->header.size = htons (sizeof (struct GNUNET_IDENTITY_CreateRequestMessage) + |