keygen/src/iam.c
/**
 * ep_auth_resp_destroy() - Destroys an iam_endpoint object
 * @ep: The object to be destroyed
 *
 * Return: None
 */
Destroys an iam_endpoint object
@ep: The object to be destroyed

None
Destroys an iam_endpoint object @ep : The object to be destroyed None
void ep_auth_resp_destroy(struct iam_endpoint *ep)
{
    free(ep->creation_timestamp);
    free(ep->modification_timestamp);
    if (ep->type == EP_DAA) {
        free(ep->active_credentials.daa.pseudonym);
        free(ep->active_credentials.daa.creation_timestamp);
    } else if (ep->type == EP_ECDSA) {
        free(ep->active_credentials.ecdsa.key);
        free(ep->active_credentials.ecdsa.creation_timestamp);
    }
}
void ep_auth_resp_destroy ( struct iam_endpoint * ep ) { free ( ep -> creation_timestamp ) ; free ( ep -> modification_timestamp ) ; if ( ep -> type == EP_DAA ) { free ( ep -> active_credentials . daa . pseudonym ) ; free ( ep -> active_credentials . daa . creation_timestamp ) ; } else if ( ep -> type == EP_ECDSA ) { free ( ep -> active_credentials . ecdsa . key ) ; free ( ep -> active_credentials . ecdsa . creation_timestamp ) ; } }
ep_auth_resp_destroy() - Destroys an iam_endpoint object
 @ep: The object to be destroyed
ep_auth_resp_destroy () - Destroys an iam_endpoint object @ep : The object to be destroyed
/* Free active credential items where applicable */