[openssl-dev] [openssl.org #3678] [PATCH] Correct the BIO_new_bio_pair example in man page
Devchandra L Meetei via RT
rt at openssl.org
Wed Jan 28 09:43:11 UTC 2015
Hi all
Please check if the man page correction for BIO_new_bio_pair.
The earlier one was hard to understand and had to scratch hair for a long
time
Also it corrects syntax error in BIO_new_bio_pair.
--
Warm Regards
--Dev
OpenPegasus Developer
"I'm one of those people that think Thomas Edison and the light bulb
changed the world more than Karl Marx ever did," Steve Jobs
-------------- next part --------------
diff --git a/doc/crypto/BIO_s_bio.pod b/doc/crypto/BIO_s_bio.pod
index 8d0a55a..51179d1 100644
--- a/doc/crypto/BIO_s_bio.pod
+++ b/doc/crypto/BIO_s_bio.pod
@@ -136,9 +136,9 @@ without having to go through the SSL-interface.
BIO *internal_bio, *network_bio;
...
- BIO_new_bio_pair(internal_bio, 0, network_bio, 0);
+ BIO_new_bio_pair(&internal_bio, 0, &network_bio, 0);
SSL_set_bio(ssl, internal_bio, internal_bio);
- SSL_operations();
+ SSL_operations(); //e.g SSL_read and SSL_write
...
application | TLS-engine
@@ -147,9 +147,13 @@ without having to go through the SSL-interface.
| /\ ||
| || \/
| BIO-pair (internal_bio)
- +----------< BIO-pair (network_bio)
+ | BIO-pair (network_bio)
+ | || /\
+ | \/ ||
+ +-----------< BIO_operations()
| |
- socket |
+ | |
+ socket
...
SSL_free(ssl); /* implicitly frees internal_bio */
More information about the openssl-dev
mailing list