Fix BIO_eof() for BIO pairs
[openssl.git] / doc / crypto / BIO_find_type.pod
index 1a1d6bfad5db00b265e5f04d00836f1a825984fe..6e65668b4c458f0f5051ba39dc6193893ed2b15e 100644 (file)
@@ -2,7 +2,7 @@
 
 =head1 NAME
 
-       BIO_find_type, BIO_next - BIO chain traversal
+BIO_find_type, BIO_next, BIO_method_type - BIO chain traversal
 
 =head1 SYNOPSIS
 
@@ -63,14 +63,6 @@ BIO_next() returns the next BIO in a chain.
 
 BIO_method_type() returns the type of the BIO B<b>.
 
-=head1 NOTES
-
-BIO_next() was added to OpenSSL 0.9.6 to provide a 'clean' way to traverse a BIO
-chain or find multiple matches using BIO_find_type(). Previous versions had to
-use:
-
- next = bio->next_bio;
-
 =head1 EXAMPLE
 
 Traverse a chain looking for digest BIOs:
@@ -78,14 +70,14 @@ Traverse a chain looking for digest BIOs:
  BIO *btmp;
  btmp = in_bio;        /* in_bio is chain to search through */
 
for(;;) {
do {
        btmp = BIO_find_type(btmp, BIO_TYPE_MD);
        if(btmp == NULL) break; /* Not found */
        /* btmp is a digest BIO, do something with it ...*/
        ...
 
        btmp = BIO_next(btmp);
- } 
+ } while(btmp);
 
 
 =head1 SEE ALSO