> From: owner-openssl-us...@openssl.org On Behalf Of Harakiri
> Sent: Tuesday, 02 November, 2010 10:06

> > BIO_set_flags(b64,BIO_FLAGS_BASE64_NO_NL)
> > 
> > Output doesn't generate (any) linebreaks. Input doesn't 
> > REQUIRE them every <80, but does ALLOW them anywhere.

Sorry, but it looks like I misled you. b64BIO NO_NL input 
doesn't allow breaks anywhere, only beginning and end of a 
*buffer*, but the Q&D test I built before didn't notice.
When I constructed a case based on the data you posted,
and debugged it, I found this.

I now don't see any good solution to your problem other 
than correcting the input so that b64BIO accepts it. 
The apparent alternative would be to duplicate most of 
SMIME_read: parse the MIME, decode base64 more leniently, 
and parse that result as (DER) PKCS7. Yuck.

Or you could change b64_read or even DecodeBlock. 
But b64BIO's and other b64 are used all over OpenSSL, 
and you'd have to verify your changes don't break other things 
-- at least other things you care about or may in the future.
Personally I would be reluctant to risk that.



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to