Hi , John take a look at the function "multi_split" in /crypto/pkcs7/pk7_mime.c .
... /* Strip CR+LF from linebuf */ next_eol = strip_eol(linebuf, &len); if(first) { first = 0; if(bpart) sk_BIO_push(parts, bpart); bpart = BIO_new(BIO_s_mem()); BIO_set_mem_eof_return(bpart, 0); } else if (eol) BIO_write(bpart, "\r\n", 2); eol = next_eol; ... it strips '\n' or '\r\n' whatever you have (strip_eol) and then always put '\r\n'. On 4/25/05, John Moore <[EMAIL PROTECTED]> wrote: > Hi: > > I'm an openssl newbie trying to write code to sign&encrypt followed by > decrypt&verify. I'm able to do these functions individually and the > sign&encrypt part works to produce an S/MIME encoded output. When I try to > decrypt&verify, the decryption returns properly but when I try to parse the > decypted contents in a BIO using SMIME_read_PKCS7 I get this error: > > error:0D06B08E:asn1 encoding routines:ASN1_d2i_bio:not enough data > > I've looked at the content of the output from PKCS7_decrypt and it looks OK, > the only difference from the original data being the use of \r\n instead of > \n to terminate lines. > > Any assistance is appreciated. I'm using 0.9.7g. > > Thanks. > > - John. > > _________________________________________________________________ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]