On Thu, Apr 16, 2020 at 10:07:27AM -0400, Chuck Lever wrote: > The bigger picture is updating the server to use xdr_stream throughout > its XDR stack. That's the main reason I worked on the client-side GSS > wrap and unwrap functions last year. > > Using xdr_stream would move the server and client sides closer together > in style and implementation, then hopefully we could share more code. I'm all for that, though I'm not sure it's the same problem. The krb5i/krb5p implementation isn't based on xdr_stream on either the client or the server. But yes maybe it would force thinking about what the different xdr_buf fields mean in a way that would clarify things. I don't know. --b.