secpol_get_policy_id()

Updated: April 19, 2023

Return the policy id of any policy that has been pushed to procnto

Synopsis:

#include <dev/crypto/secpol.h>
int secpol_get_policy_id(uint32_t *policy_id)

Arguments:

policy_id
Address of a variable to receive the policy id.

Library:

devcr

Description:

This should be used to verify that it matches the policy id of any blob that is used from a policy file as mismatched policies might have unwanted results.

Returns:

0 if call was successful, or -1 if request failed (errno is set).