From: "Hellan,Kim KHE" <[EMAIL PROTECTED]>

khe> After you create the base 64 BIO, set the following flag,
khe> BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
khe> to parse the input without linefeed.
khe> 
khe> It doesn't seem to work. Basically what I have is:
khe> 
khe> 1: BIO* bioIndata = NULL;
khe> 2: BIO* spBio = BIO_new_file((char*) mySMIMEfile, "rb");
khe> 3: PKCS7* p7 = SMIME_read_PKCS7(spBio, &bioIndata); <--- FAILS
khe> 
khe> If I add the line
khe>    BIO_set_flags(spBIO, BIO_FLAGS_BASE64_NO_NL);
khe> before line 3, it still fails.

Ah, there was a misunderstanding there, I see.  The BIO_FLAGS_BASE64_NO_NL
control only works with the b64 BIO filter.  It seems like the SMIME
functions expect 64 character lines and that's the end of it.

Note, I haven't looked at the source yet, so I don't know what tweaks
there are.

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to