On Sun, Aug 13, 2006, ?????????????? ???????????? wrote:

> Hello Stephen,
> 
> Sunday, August 13, 2006, 4:44:27 PM, you wrote:
> > If the base64 encoded file was created using a base64 BIO then the
> > BIO_FLAGS_BASE64_NO_NL flag will do it.
> This is what I did:
> mc_file = BIO_new_file( nowsigned, "wb" );
> if( mc_file )
> {
>     b64 = BIO_new( BIO_f_base64() );
>     mc_file = BIO_push( b64, mc_file );
>     BIO_write( mc_file, mess, mess_len );
>     BIO_flush( mc_file );
>     BIO_free_all( mc_file );
> How should I use that flag?
> 

BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL) after the call to BIO_new().

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to