cose-wg / COSE-C

Implementation of COSE in C++; Provides a C interface; Crypto by openssl or mbedtls
BSD 3-Clause "New" or "Revised" License
30 stars 22 forks source link

cn_cbor_clone() unknow type CN_CBOR_ARRAY #131

Open Manu-sh opened 2 years ago

Manu-sh commented 2 years ago

image

https://github.com/cose-wg/COSE-C/blob/97d1805e71b7a6770093c5e6790d46611680d563/src/cbor.cpp#L154

I have tried to clone a node that contains an array (CN_CBOR_ARRAY) as child using cn_cbor_clone() but sadly it doesn't work, there is another way to take a copy of the underlying cn_cbor object?