No, we shouldn't assert, and those error codes should be okay (haven't
heard any better ideas). Get rid of these comments, so there's no
confusion.
Merge into "Clean up akimpersonate and use for server-to-server".
return code;
invalid:
- /* XXX or assert, or ...? */
+ /* We don't handle all possible ticket options, features, etc. If we are
+ * given a ticket we can't handle, bail out with EINVAL. */
code = EINVAL;
goto cleanup;
}
ASN1_MALLOC_ENCODE(Ticket, outdata, outlen,
&v5gen_tkt, &dummy, code);
if (code == 0 && dummy != outlen)
- code = EINVAL; /* XXX what error should this be? */
+ code = EINVAL;
if (code)
goto cleanup;
ASN1_MALLOC_ENCODE(EncTicketPart, outdata, outlen,
&v5gen_enc, &dummy, code);
if (code == 0 && dummy != outlen)
- code = EINVAL; /* XXX what error should this be? */
+ code = EINVAL;
if (code)
goto cleanup;