The documentation for gnutls_x509_crq_export says that it should return 0 upon success, but it seems that it actually returns the size of the exported record (as of 1.4.5). cheers -Aaron -- sig at netdot.net Plead the First.