aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/gnunet_crypto_dbus_lib_pop.h
blob: 7fe086a425455e2a92d6054a43a60fe7aca5fd85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef GNUNET_CRYPTO_DBUS_LIB_POP_H
#define GNUNET_CRYPTO_DBUS_LIB_POP_H

#include <gnunet/platform.h>
#include <gnunet/gnunet_common.h>
#include <gnunet/gnunet_crypto_lib.h>

/**
 * Pop a GNUNET_CRYPT_EcdsaPublicKey off of a DBusMessage, moving the iterator.
 * `arg_name` is used for reporting useful diagnostics if the value in the
 * message is missing or the wrong type.
 */
DBusMessage *
GNUNET_CRYPTO_DBUS_pop_ecdsa_public_key (
    DBusMessage *message,
    DBusMessageIter *iter,
    const char *arg_name,
    struct GNUNET_CRYPTO_EcdsaPublicKey *value);

/**
 * Pop a GNUNET_CRYPTO_EddsaPublicKey off a DBusMessage, moving the iterator.
 * `arg_name` is used for reporting useful diagnostics if the value in the
 * message is missing or the wrong type.
 */
DBusMessage *
GNUNET_CRYPTO_DBUS_pop_eddsa_public_key (
    DBusMessage *message,
    DBusMessageIter *iter,
    const char *arg_name,
    struct GNUNET_CRYPTO_EddsaPublicKey *value);

#endif