]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Comment cleanup
authorAndrew Deason <adeason@sinenomine.net>
Tue, 9 Jul 2013 22:42:29 +0000 (17:42 -0500)
committerRuss Allbery <rra@debian.org>
Thu, 25 Jul 2013 04:04:16 +0000 (21:04 -0700)
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".

src/auth/akimpersonate.c
src/auth/akimpersonate_v5gen.c

index 44c6e6f4474b75c237b85a8b483c55d5ab0924f9..644db0164c348b8d5660332c4e75d1cb4cabd921 100644 (file)
@@ -239,7 +239,8 @@ encode_krb5_enc_tkt_part(krb5_enc_tkt_part *encpart, krb5_data **a_out)
     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;
 }
index 623b551170fb778a22999f05271815b12a00e9e3..4ace8df69a503b2692d103bb7daa626b530c5bc2 100644 (file)
@@ -89,7 +89,7 @@ akv5gen_encode_krb5_ticket(int kvno,
     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;
 
@@ -160,7 +160,7 @@ akv5gen_encode_krb5_enc_tkt_part(int enctype,
     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;