Delegate helper functions. More...
#include "gnunet_abd_service.h"
Go to the source code of this file.
Functions | |
char * | GNUNET_ABD_delegate_to_string (const struct GNUNET_ABD_Delegate *cred) |
struct GNUNET_ABD_Delegate * | GNUNET_ABD_delegate_from_string (const char *str) |
Delegate helper functions.
Definition in file delegate_misc.h.
char * GNUNET_ABD_delegate_to_string | ( | const struct GNUNET_ABD_Delegate * | cred | ) |
Definition at line 37 of file delegate_misc.c.
References cred, GNUNET_asprintf(), GNUNET_CRYPTO_public_key_to_string(), GNUNET_free, GNUNET_STRINGS_base64_encode(), issuer_pkey, and subject_pkey.
Referenced by abd_value_to_string(), handle_collect_result(), and sign_cb().
struct GNUNET_ABD_Delegate * GNUNET_ABD_delegate_from_string | ( | const char * | str | ) |
Definition at line 82 of file delegate_misc.c.
References GNUNET_TIME_Absolute::abs_value_us, GNUNET_ABD_Delegate::expiration, GNUNET_assert, GNUNET_CRYPTO_public_key_from_string(), GNUNET_ERROR_TYPE_ERROR, GNUNET_free, GNUNET_log, GNUNET_malloc, GNUNET_memcpy, GNUNET_STRINGS_base64_decode(), GNUNET_SYSERR, GNUNET_ABD_Delegate::issuer_attribute, GNUNET_ABD_Delegate::issuer_attribute_len, GNUNET_ABD_Delegate::issuer_key, issuer_pkey, KEY_LEN_ENC, GNUNET_ABD_Delegate::signature, GNUNET_ABD_Delegate::subject_attribute, GNUNET_ABD_Delegate::subject_attribute_len, GNUNET_ABD_Delegate::subject_key, and subject_pkey.
Referenced by abd_string_to_value(), run(), and store_cb().