#include <include/modem/modem_attest_token.h>
Gets the device attestation token from the modem. If successful, the base64url attestation string and base64url COSE string will be stored in the supplied struct. This function will allocate memory for the strings if buffers are not provided by the user. In that case, the user is responsible for freeing the memory by calling modem_attest_token_free.
- Parameters
-
[in,out] | token | Pointer to struct containing attestation token strings. |
- Return values
-
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |