nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ modem_attest_token_get()

int modem_attest_token_get ( struct nrf_attestation_token *const token)

#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]tokenPointer to struct containing attestation token strings.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.