got_sha1_digest_to_str() writes to char *