GSS IOV flags

Danilo Almeida dalmeida at MIT.EDU
Wed Dec 17 12:43:35 EST 2008


<quote from="Luke">
>> #define GSS_IOV_BUFFER_TYPE_DATA            1   /* Packet data */
>> #define GSS_IOV_BUFFER_TYPE_HEADER          2   /* Mechanism header  
>> */
>> #define GSS_IOV_BUFFER_TYPE_MECH_PARAMS     3   /* Mechanism specific
>> parameters */
>> #define GSS_IOV_BUFFER_TYPE_TRAILER         7   /* Mechanism  
>> trailer */
>> #define GSS_IOV_BUFFER_TYPE_PADDING         9   /* Padding */
>> #define GSS_IOV_BUFFER_TYPE_STREAM          10  /* Complete wrap  
>> token */
>> #define GSS_IOV_BUFFER_TYPE_SIGN_ONLY       11  /* Sign only packet  
>> data */
>
> any reason for not counting from 0-7?

I tried to keep the types aligned with the equivalent SSPI types, to  
make it easier for anyone that might want to build a shim (in either  
direction).
</quote>

Plus not starting at 0 lets you use 0 as a convenient value for
"uninitialized".

- Danilo





More information about the krbdev mailing list