After you create the base 64 BIO, set the following flag,
BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
to parse the input without linefeed.
It doesn't seem to work. Basically what I have is:
1: BIO* bioIndata = NULL;
2: BIO* spBio = BIO_new_file((char*) mySMIMEfile, "rb");
3: PKCS7* p7 = SMIME_read_PKCS7(spBio, &bioIndata); <--- FAILS
If I add the line
BIO_set_flags(spBIO, BIO_FLAGS_BASE64_NO_NL);
before line 3, it still fails.
If anyone is interested (have the time), I can send the S/MIME file that is
causing the problem.
Again.....
If I edit the S/MIME file and place a <CR> after each 64 char. in the BASE64
part of the file, OpenSSL does NOT fail.
Thanks,
Kim Hellan
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]