diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-29 18:06:26 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-29 18:06:26 +0900 |
commit | 0f2da4636e108c70697c589d9e38781f2bafefba (patch) | |
tree | 0e831befd71d4323596cdae55e8431df7720c531 /src/conversation/test_conversation_api_reject.c | |
parent | 4e2259f14be320c8e2fe2a672a473e09677269c4 (diff) | |
download | gnunet-0f2da4636e108c70697c589d9e38781f2bafefba.tar.gz gnunet-0f2da4636e108c70697c589d9e38781f2bafefba.zip |
IDENTITY
This commit is a major rework of the unclean GNUNET_IDENTITY_*Key
structures and its use in serialized objects (e.g. RPC messages).
The structures are now no longer to be used directly but instead through
their serialization helper functions whenever needed.
Diffstat (limited to 'src/conversation/test_conversation_api_reject.c')
-rw-r--r-- | src/conversation/test_conversation_api_reject.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/conversation/test_conversation_api_reject.c b/src/conversation/test_conversation_api_reject.c index 15728123b..a7aab069f 100644 --- a/src/conversation/test_conversation_api_reject.c +++ b/src/conversation/test_conversation_api_reject.c | |||
@@ -239,21 +239,20 @@ call_event_handler (void *cls, enum GNUNET_CONVERSATION_CallEventCode code) | |||
239 | static void | 239 | static void |
240 | caller_ego_create_cont (void *cls, | 240 | caller_ego_create_cont (void *cls, |
241 | const struct GNUNET_IDENTITY_PrivateKey *pk, | 241 | const struct GNUNET_IDENTITY_PrivateKey *pk, |
242 | const char *emsg) | 242 | enum GNUNET_ErrorCode ec) |
243 | { | 243 | { |
244 | (void) cls; | 244 | (void) cls; |
245 | op = NULL; | 245 | op = NULL; |
246 | GNUNET_assert (NULL == emsg); | 246 | GNUNET_assert (GNUNET_EC_NONE == ec); |
247 | } | 247 | } |
248 | 248 | ||
249 | 249 | ||
250 | static void | 250 | static void |
251 | namestore_put_cont (void *cls, int32_t success, const char *emsg) | 251 | namestore_put_cont (void *cls, enum GNUNET_ErrorCode ec) |
252 | { | 252 | { |
253 | (void) cls; | 253 | (void) cls; |
254 | qe = NULL; | 254 | qe = NULL; |
255 | GNUNET_assert (GNUNET_YES == success); | 255 | GNUNET_assert (GNUNET_EC_NONE == ec); |
256 | GNUNET_assert (NULL == emsg); | ||
257 | GNUNET_assert (NULL == op); | 256 | GNUNET_assert (NULL == op); |
258 | op = GNUNET_IDENTITY_create (id, "caller-ego", NULL, | 257 | op = GNUNET_IDENTITY_create (id, "caller-ego", NULL, |
259 | GNUNET_IDENTITY_TYPE_ECDSA, | 258 | GNUNET_IDENTITY_TYPE_ECDSA, |
@@ -321,11 +320,11 @@ identity_cb (void *cls, | |||
321 | static void | 320 | static void |
322 | phone_ego_create_cont (void *cls, | 321 | phone_ego_create_cont (void *cls, |
323 | const struct GNUNET_IDENTITY_PrivateKey *pk, | 322 | const struct GNUNET_IDENTITY_PrivateKey *pk, |
324 | const char *emsg) | 323 | enum GNUNET_ErrorCode ec) |
325 | { | 324 | { |
326 | (void) cls; | 325 | (void) cls; |
327 | op = NULL; | 326 | op = NULL; |
328 | GNUNET_assert (NULL == emsg); | 327 | GNUNET_assert (GNUNET_EC_NONE == ec); |
329 | } | 328 | } |
330 | 329 | ||
331 | 330 | ||