OpenDOF Project
DOFCredentials DOFCredentialsKey_Create ( const DOFObjectIDDomain  domainID,
const DOFObjectIDAuthentication  identity,
const uint8  key[32] 
)

Creates new credentials that use a key as the secret.

Parameters
domainIDThe domain in which the identity exists. If unknown, use DOFOBJECTIDDOMAIN_BROADCAST. This should not be NULL.
identityThe Object ID representing the authentication identity. This should not be NULL.
keyThe secret to be used with the identity for authentication. This should not be NULL.
Returns
A newly created DOFCredentials.
Exceptions
NULLis returned if an invalid parameter was detected, or the credentials could not be created.
Resource Management:
This function allocates resources that must later be freed by calling DOFCredentials_Destroy.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22