Shaun wrote: > I used fwrite(signature,1,strlen(signature),fp) and got the same results. > > Ok - strlen does the same thing as printf - it stops at a NULL. Since the signature is NOT guaranteed to not contain a NULL, you can't use any function that keys off of a NULL character. Which means that you need to use read() and write() directly. Either that, or convert the unsigned char * buffer that you have the signature in to be in a form that is "string" friendly (base64 or simple hexify) and then print THAT out.
Have fun. Patrick. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]