DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
Loading...
Searching...
No Matches
ari.c File Reference
#include "ari.h"
#include <cace/ari/text_util.h>
#include <cace/ari/cbor.h>
#include <cace/util/logging.h>
#include <cace/util/defs.h>
+ Include dependency graph for ari.c:

Functions

int test_util_ari_decode (cace_ari_t *ari, const char *inhex)
 Decode an ARI from a hex-encoded text string.
 
int test_util_ari_encode (m_string_t outhex, const cace_ari_t *ari)
 Encode an ARI to a hex-encoded text string.
 

Function Documentation

◆ test_util_ari_decode()

◆ test_util_ari_encode()

int test_util_ari_encode ( m_string_t  outhex,
const cace_ari_t ari 
)

Encode an ARI to a hex-encoded text string.

Parameters
[out]outhexAn uninitialized string buffer.

References cace_ari_cbor_encode(), cace_base16_encode(), cace_data_deinit(), cace_data_init(), CACE_LOG_ERR, and CHKERR1.

Referenced by test_refda_adm_ietf_dtnma_agent_edd_produce().