Hi OpenSSL team,

I'm not sure but this might be improving your documentation.

http://www.openssl.org/docs/crypto/BIO_push.html

If the call: 
 BIO_push(b64, f);

is made then the new chain will be b64-chain. After making the calls

shouldn't this be "b64-f" instead of "b64-chain"?

Another one:


BIO *  BIO_push(BIO *b,BIO *append);
The BIO_push() function appends the BIO append to b, it returns b.

This is ok but for example in 
http://www.openssl.org/docs/crypto/BIO_f_base64.html
the example looks like:

 BIO *bio, *b64;
 char message[] = "Hello World \n";
 b64 = BIO_new(BIO_f_base64());
 bio = BIO_new_fp(stdout, BIO_NOCLOSE);
 bio = BIO_push(b64, bio);
...

>From a technical view this is ok because bio and b64 are both pointers of type 
>BIO but following the documentation of BIO_push
it should look like this for better understanding:

b64 = BIO_push(b64, bio);


Maybe I'm wrong, regards.
-Steffen

-- 
Hermes powered by LFS SVN-20070420 (Linux 2.6.24-rc7)

Best regards, Steffen Pankratz.

Attachment: signature.asc
Description: PGP signature

Reply via email to