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 On Fri, Aug 29, 2008 at 12:54 PM, David Schwartz <[EMAIL PROTECTED]>wrote: > > > Hello everyone, here's what's driving me nuts. > > I'm sure i'm missing something simple, but why isn't the > > encrypted message coming out of > > " BIO_get_mem_data(out, &enc_msg); " Null terminated ? > > > Mike Luich > > Why should it be? It's not a string, it's a block of arbitrary data. > > Besides, what would be the point in nul-terminating a block of data that > may > already contains any number of zero bytes in it? > > DS > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager [EMAIL PROTECTED] >