rpc: clean up decoding of gssproxy linux creds
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 21 Aug 2013 14:32:52 +0000 (10:32 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 6 Sep 2013 15:45:56 +0000 (11:45 -0400)
We can use the normal coding infrastructure here.

Two minor behavior changes:

- we're assuming no wasted space at the end of the linux cred.
  That seems to match gss-proxy's behavior, and I can't see why
  it would need to do differently in the future.

- NGROUPS_MAX check added: note groups_alloc doesn't do this,
  this is the caller's responsibility.

Tested-by: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

No differences found