> Hmm then perhaps I'm expecting the wong thing to be coming > out. I'm using PKCS7_encrypt followed by SMIME_write_PKCS7. > So the data is base64 encoded and in S/MIME Format.
> I just want to get this in a format that I can return as a > string that's null terminated. So the app can use it as a string. > Mike Luich You're right, wrong explanation. The function wrote the string to the BIO, but not the terminator (just as you wouldn't write the terminator to a file). You then got a pointer to the data in the BIO. The same thing would occur if you memory-mapped a file containing the string. It wouldn't be terminated. If you need to the data in the form of a C-style string, you need to make it one. You could simply write a zero to the BIO, I suppose. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]