Clean up a few strcmp usages, export get_role_oid_or_public and use it instead.