sha1_name: convert get_sha1* to get_oid*