I have a working example of Encoding base64 using the BIO methods but
decrypting a string is being somewhat problematic. The code in the man
page for decoding does not work either as the stdin new_fp does not hand
off / stop listening for input.
The openssl version is 0.9.8i
If anyone could supply a working example I would appreciate it,
Regards
Nigel
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org
// push a Base64 filter so that reading from buffer decodes it
BIO *bioCmd =3D BIO_new(BIO_f_base64());
// we don't want newlines
BIO_set_flags(bioCmd, BIO_FLAGS_BASE64_NO_NL);
bmem =3D BIO_push(bioCmd, bmem);
int finalLen =3D BIO_read(bmem, (void*)pOut, outLen);
BIO_free_all(bmem);
outLen =3D finalLen;
}
On Fri, Sep 4, 2009 at 1:37 PM, Nigel Sollars<n...@vx.com> wrote:
> HI all,
>
> I have a working example of Encoding base64 using the BIO methods but
> decrypting a string is being somewhat problematic. =A0The code in the man=
page
> for decoding does not work either as the stdin new_fp does not hand off /
> stop listening for input.
>
> The openssl version is 0.9.8i
>
> If anyone could supply a working example I would appreciate it,
>
> Regards
> Nigel
> ______________________________________________________________________
> OpenSSL Project =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 http://www.openssl.org
> User Support Mailing List =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0openssl-=
us...@openssl.org
> Automated List Manager =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 majo...@openssl.org