encryption_private_key = profile->server->private_data->encryption_private_key;
encrypted_element = LASSO_SAML2_ENCRYPTED_ELEMENT(encrypted_id);
if (encrypted_element != NULL && encryption_private_key == NULL) {
return LASSO_PROFILE_ERROR_MISSING_ENCRYPTION_PRIVATE_KEY;
}
if (encrypted_element != NULL && encryption_private_key != NULL) {
profile->nameIdentifier = LASSO_NODE(lasso_node_decrypt(
encrypted_id, encryption_private_key));
LASSO_SAMLP2_MANAGE_NAME_ID_REQUEST(profile->request)->NameID = \
LASSO_SAML2_NAME_ID(profile->nameIdentifier);
LASSO_SAMLP2_MANAGE_NAME_ID_REQUEST(profile->request)->EncryptedID = NULL;