The krb5_c_crypto_length API returns unsigned int per its design. so, use unsigned int not size_t for its output. http://src.mit.edu/fisheye/changelog/krb5/?cs=21799 Commit By: hartmans Revision: 21799 Changed Files: U trunk/src/lib/gssapi/krb5/k5sealv3iov.c