sha1_name: convert GET_SHA1* flags to GET_OID*