Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 195 I would say the calling code is at fault here. At least notionally, the profile library is a dependency of libkrb5 and not the other way around, so profile functions should not use krb5 types.